Ver Fonte

vulkan: fix extra redundant swapchain recreation happening on resize.

Sasha Szpakowski há 7 meses atrás
pai
commit
bda679d629
1 ficheiros alterados com 1 adições e 0 exclusões
  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();