Commit 453aaba4 by Geoff Lang

Don't let mBufferSize fall out of sync with the actual buffer size. Pervents…

Don't let mBufferSize fall out of sync with the actual buffer size. Pervents unnecessary buffer re-creations. Change-Id: Ie40300865dcd7830fe8eafbccfaa3edad46c7b52
parent 9b27ebb0
...@@ -354,10 +354,6 @@ bool DirectBufferStorage11::updateFromStagingBuffer(ID3D11Buffer *stagingBuffer, ...@@ -354,10 +354,6 @@ bool DirectBufferStorage11::updateFromStagingBuffer(ID3D11Buffer *stagingBuffer,
mBufferSize = bufferDesc.ByteWidth; mBufferSize = bufferDesc.ByteWidth;
} }
else
{
mBufferSize = requiredBufferSize;
}
// Copy data via staging buffer // Copy data via staging buffer
D3D11_BOX srcBox; D3D11_BOX srcBox;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment