mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-12 17:38:19 +00:00
[dxgi] d3d12: fix incorrect mapping range
This commit is contained in:
parent
3838e1f996
commit
cc48257aeb
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user