[dxgi] d3d12: fix incorrect mapping range

This commit is contained in:
Geoffrey McRae committed 2023-11-10 06:28:05 +11:00
1 parent 3838e1f996
commit cc48257aeb
1 file changed
+1 -1
@@ -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);