diff --git a/src/modules/graphics/vulkan/Graphics.cpp b/src/modules/graphics/vulkan/Graphics.cpp index e696c7773..e388bae1a 100644 --- a/src/modules/graphics/vulkan/Graphics.cpp +++ b/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); }