Sasha Szpakowski 8 bulan lalu
induk
melakukan
aa79ed1ad1
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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);
 	}