mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
d3d12: Do not reserve a lot more than necessary.
This commit is contained in:
parent
dbcddcf5e2
commit
628acbf0b4
1 changed files with 1 additions and 1 deletions
|
@ -494,7 +494,7 @@ ID3D12Resource *uploadSingleTexture(
|
|||
size_t rowPitch = powerOf2Align(blockSizeInByte * widthInBlocks, 256);
|
||||
|
||||
ID3D12Resource *Texture;
|
||||
size_t textureSize = rowPitch * heightInBlocks * 4; // * 4 for mipmap levels
|
||||
size_t textureSize = rowPitch * heightInBlocks * 2; // * 4 for mipmap levels
|
||||
assert(textureBuffersHeap.canAlloc(textureSize));
|
||||
size_t heapOffset = textureBuffersHeap.alloc(textureSize);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue