D3D11 ResizeBuffers fix

pass count as 0 for automatic value instead of explicit, which could be wrong.
This commit is contained in:
Noel Berry 2021-01-06 13:20:29 -08:00
parent 3fa9f99791
commit 3bc36981cb

View File

@ -806,7 +806,7 @@ namespace Blah
state.backbuffer->Release(); state.backbuffer->Release();
// perform resize // perform resize
hr = state.swap_chain->ResizeBuffers(2, next_size.x, next_size.y, DXGI_FORMAT_B8G8R8A8_UNORM, 0); hr = state.swap_chain->ResizeBuffers(0, next_size.x, next_size.y, DXGI_FORMAT_B8G8R8A8_UNORM, 0);
BLAH_ASSERT(SUCCEEDED(hr), "Failed to update Backbuffer on Resize"); BLAH_ASSERT(SUCCEEDED(hr), "Failed to update Backbuffer on Resize");
state.last_size = next_size; state.last_size = next_size;