hot-fix: catch device loss on presentation (prevents deadlock in waiting)
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions

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;