[dxgi] d3d12: fix incorrect mapping range

This commit is contained in:
Geoffrey McRae 2023-11-07 16:06:35 +11:00
parent 3838e1f996
commit cc48257aeb

View file

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