VKGfx: Don't panic for VK_SUBOPTIMAL_KHR

This commit is contained in:
Martino Fontana 2024-01-05 11:20:35 +01:00
parent 2f7f7afe6d
commit 58f5bf5496
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ void VKGfx::BindBackbuffer(const ClearColor& clear_color)
}
res = m_swap_chain->AcquireNextImage();
if (res != VK_SUCCESS)
if (res != VK_SUCCESS && res != VK_SUBOPTIMAL_KHR)
PanicAlertFmt("Failed to grab image from swap chain: {:#010X} {}", Common::ToUnderlying(res),
VkResultToString(res));
}