FIX: position swapchain to RGBA32F(RT shadow quality in far dist), memory allocation errors

This commit is contained in:
2025-11-24 14:46:36 +09:00
parent 1bff14571c
commit fdb8835a3c
6 changed files with 62 additions and 13 deletions

View File

@@ -310,6 +310,20 @@ void LightingPass::draw_lighting(VkCommandBuffer cmd,
void LightingPass::cleanup()
{
if (_context && _context->getResources())
{
if (_fallbackIbl2D.image)
{
_context->getResources()->destroy_image(_fallbackIbl2D);
_fallbackIbl2D = {};
}
if (_fallbackBrdfLut2D.image)
{
_context->getResources()->destroy_image(_fallbackBrdfLut2D);
_fallbackBrdfLut2D = {};
}
}
_deletionQueue.flush();
fmt::print("LightingPass::cleanup()\n");
}