From f381bfe14fd80b61e033947ca9d481494335653f Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Fri, 15 Nov 2024 17:20:47 +0100 Subject: [PATCH] d3d11 samples: fix the buffer count in IDXGISwapChain_ResizeBuffers call --- d3d11/d3d11entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d3d11/d3d11entry.c b/d3d11/d3d11entry.c index 983b8e6a..d95d7da6 100644 --- a/d3d11/d3d11entry.c +++ b/d3d11/d3d11entry.c @@ -212,7 +212,7 @@ void d3d11_destroy_default_render_targets(void) { void d3d11_update_default_render_targets(void) { if (state.swap_chain) { d3d11_destroy_default_render_targets(); - IDXGISwapChain_ResizeBuffers(state.swap_chain, 1, state.width, state.height, DXGI_FORMAT_B8G8R8A8_UNORM, 0); + IDXGISwapChain_ResizeBuffers(state.swap_chain, 2, state.width, state.height, DXGI_FORMAT_B8G8R8A8_UNORM, 0); d3d11_create_default_render_targets(); } }