VulkanRenderer/VulkanSwapchain: Fix creation when surface size doesn't match expected swapchain size

This commit is contained in:
SirLynix 2023-02-26 13:49:54 +01:00
parent c560e552dc
commit d46299ff38
1 changed files with 1 additions and 0 deletions

View File

@ -613,6 +613,7 @@ namespace Nz
} }
m_swapchain = std::move(newSwapchain); m_swapchain = std::move(newSwapchain);
m_swapchainSize = { SafeCast<unsigned int>(extent.width), SafeCast<unsigned int>(extent.height) };
// Framebuffers // Framebuffers
imageCount = m_swapchain.GetImageCount(); imageCount = m_swapchain.GetImageCount();