Merge pull request #12484 from SuperSamus/vulkan-dont-panic-suboptimal-khr

VKGfx: Don't panic for VK_SUBOPTIMAL_KHR
This commit is contained in:
Tilka 2024-01-06 12:39:40 +00:00 committed by GitHub
commit 5b2ea515ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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));
}