mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
d3d12: Fix copyToCellRamAndRelease copy size
This commit is contained in:
parent
906146d8f6
commit
262d3d0755
1 changed files with 1 additions and 1 deletions
|
@ -1177,7 +1177,7 @@ void copyToCellRamAndRelease(void *dstAddress, ID3D12Resource *res, size_t rowPi
|
|||
void *srcBuffer;
|
||||
check(res->Map(0, nullptr, &srcBuffer));
|
||||
for (unsigned row = 0; row < height; row++)
|
||||
memcpy((char*)dstAddress + row * width, ((char*)srcBuffer) + row * rowPitch, width);
|
||||
memcpy((char*)dstAddress + row * width * 4, (char*)srcBuffer + row * rowPitch, width * 4);
|
||||
res->Unmap(0, nullptr);
|
||||
res->Release();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue