Sasha Szpakowski před 8 měsíci
rodič
revize
aa79ed1ad1
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/modules/graphics/vulkan/Graphics.cpp

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

@@ -3256,7 +3256,7 @@ void Graphics::cleanupSwapChain()
 	}
 	if (depthImage)
 	{
-		cleanupFramebuffers(depthImageView, swapChainPixelFormat);
+		cleanupFramebuffers(depthImageView, depthStencilPixelFormat);
 		vkDestroyImageView(device, depthImageView, nullptr);
 		vmaDestroyImage(vmaAllocator, depthImage, depthImageAllocation);
 	}