Forráskód Böngészése

vulkan: fix extra redundant swapchain recreation happening on resize.

Sasha Szpakowski 7 hónapja
szülő
commit
bda679d629
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      src/modules/graphics/vulkan/Graphics.cpp

+ 1 - 0
src/modules/graphics/vulkan/Graphics.cpp

@@ -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();