From cc48257aeb6f622e6c1241d66432c8a56aaf0b58 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 7 Nov 2023 16:06:35 +1100 Subject: [PATCH] [dxgi] d3d12: fix incorrect mapping range --- host/platform/Windows/capture/DXGI/src/d3d12.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/platform/Windows/capture/DXGI/src/d3d12.c b/host/platform/Windows/capture/DXGI/src/d3d12.c index 37e1d3aa..02ebad93 100644 --- a/host/platform/Windows/capture/DXGI/src/d3d12.c +++ b/host/platform/Windows/capture/DXGI/src/d3d12.c @@ -551,7 +551,7 @@ static CaptureResult d3d12_mapTexture(Texture * parent) D3D12_RANGE range = { .Begin = 0, - .End = dxgi->pitch * dxgi->height + .End = this->pitch * this->height }; status = ID3D12Resource_Map(*tex->tex, 0, &range, &parent->map);