Skip to content

Commit

Permalink
[Vulkan] Handle DeviceLostError in acquireNextSwapchainImage
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Aug 27, 2023
1 parent d34be78 commit f2bce01
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/ivis_opengl/gfx_api_vk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5415,6 +5415,11 @@ VkRoot::AcquireNextSwapchainImageResult VkRoot::acquireNextSwapchainImage()
}
return AcquireNextSwapchainImageResult::eUnhandledFailure;
}
catch (const vk::DeviceLostError& e)
{
debug(LOG_ERROR, "vk::Device::acquireNextImageKHR: DeviceLostError: %s", e.what());
handleUnrecoverableError(vk::Result::eErrorDeviceLost);
}
catch (const vk::SystemError& e)
{
debug(LOG_ERROR, "vk::Device::acquireNextImageKHR: unhandled error: %s", e.what());
Expand Down

0 comments on commit f2bce01

Please sign in to comment.