Skip to content

Commit

Permalink
d3d11 samples: fix the buffer count in IDXGISwapChain_ResizeBuffers call
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Nov 15, 2024
1 parent 6bed551 commit f381bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion d3d11/d3d11entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit f381bfe

Please sign in to comment.