From 3bc36981cbc762725c99c0442a3d06fd831ef1ec Mon Sep 17 00:00:00 2001 From: Noel Berry Date: Wed, 6 Jan 2021 13:20:29 -0800 Subject: [PATCH] D3D11 ResizeBuffers fix pass count as 0 for automatic value instead of explicit, which could be wrong. --- src/internal/graphics_backend_d3d11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/graphics_backend_d3d11.cpp b/src/internal/graphics_backend_d3d11.cpp index d3f21a9..efd5ad1 100644 --- a/src/internal/graphics_backend_d3d11.cpp +++ b/src/internal/graphics_backend_d3d11.cpp @@ -806,7 +806,7 @@ namespace Blah state.backbuffer->Release(); // 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"); state.last_size = next_size;