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);