Sasha Szpakowski пре 8 месеци
родитељ
комит
aa79ed1ad1
1 измењених фајлова са 1 додато и 1 уклоњено
  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);
 	}