hot-fix: catch device loss on presentation (prevents deadlock in waiting)

This commit is contained in:
psucien 2024-10-09 20:44:38 +02:00
parent 873fbc469b
commit c9f894c45a

View file

@ -446,6 +446,8 @@ Frame* RendererVulkan::GetRenderFrame() {
// Wait for the presentation to be finished so all frame resources are free
while (wait() != vk::Result::eSuccess) {
ASSERT_MSG(result != vk::Result::eErrorDeviceLost,
"Device lost during waiting for a frame");
// Retry if the waiting times out
if (result == vk::Result::eTimeout) {
continue;