mirror of
https://github.com/NoelFB/blah.git
synced 2024-11-29 17:08:56 +08:00
D3D11 ResizeBuffers fix
pass count as 0 for automatic value instead of explicit, which could be wrong.
This commit is contained in:
parent
3fa9f99791
commit
3bc36981cb
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user