Skip to content

Commit

Permalink
vulkan: fix extra redundant swapchain recreation happening on resize.
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Feb 2, 2025
1 parent 0e5133e commit bda679d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/graphics/vulkan/Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,7 @@ void Graphics::backbufferChanged(int width, int height, int pixelwidth, int pixe
// MSAA state to get out of sync for a frame.
if (swapChainRecreationRequested)
{
swapChainRecreationRequested = false;
submitGpuCommands(SUBMIT_NOPRESENT);
recreateSwapChain();
beginSwapChainFrame();
Expand Down

0 comments on commit bda679d

Please sign in to comment.