From 628acbf0b4ad7fec854893c2661d49ff1b70778f Mon Sep 17 00:00:00 2001 From: vlj Date: Wed, 17 Jun 2015 00:26:49 +0200 Subject: [PATCH] d3d12: Do not reserve a lot more than necessary. --- rpcs3/Emu/RSX/D3D12/D3D12Texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/D3D12/D3D12Texture.cpp b/rpcs3/Emu/RSX/D3D12/D3D12Texture.cpp index 35fbf8e245..c0e8b4609d 100644 --- a/rpcs3/Emu/RSX/D3D12/D3D12Texture.cpp +++ b/rpcs3/Emu/RSX/D3D12/D3D12Texture.cpp @@ -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);