d3d12: Do not reserve a lot more than necessary.

This commit is contained in:
vlj 2015-06-17 00:26:49 +02:00 committed by Vincent Lejeune
parent dbcddcf5e2
commit 628acbf0b4

View file

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