diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-10-30 14:59:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-30 14:59:37 +0100 |
commit | 1836e62d3354905817d73d8ccbd84ec6b97b4c48 (patch) | |
tree | 972752c35218f12c53e6c97dfe0f980a59387cb0 /src/video_core/renderer_vulkan | |
parent | Merge pull request #11689 from liamwhite/breakpad (diff) | |
parent | renderer_vulkan: ensure exception on surface loss (diff) | |
download | yuzu-1836e62d3354905817d73d8ccbd84ec6b97b4c48.tar yuzu-1836e62d3354905817d73d8ccbd84ec6b97b4c48.tar.gz yuzu-1836e62d3354905817d73d8ccbd84ec6b97b4c48.tar.bz2 yuzu-1836e62d3354905817d73d8ccbd84ec6b97b4c48.tar.lz yuzu-1836e62d3354905817d73d8ccbd84ec6b97b4c48.tar.xz yuzu-1836e62d3354905817d73d8ccbd84ec6b97b4c48.tar.zst yuzu-1836e62d3354905817d73d8ccbd84ec6b97b4c48.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_swapchain.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_swapchain.cpp b/src/video_core/renderer_vulkan/vk_swapchain.cpp index 81ef98f61..821f44f1a 100644 --- a/src/video_core/renderer_vulkan/vk_swapchain.cpp +++ b/src/video_core/renderer_vulkan/vk_swapchain.cpp @@ -147,6 +147,9 @@ bool Swapchain::AcquireNextImage() { case VK_ERROR_OUT_OF_DATE_KHR: is_outdated = true; break; + case VK_ERROR_SURFACE_LOST_KHR: + vk::Check(result); + break; default: LOG_ERROR(Render_Vulkan, "vkAcquireNextImageKHR returned {}", vk::ToString(result)); break; @@ -180,6 +183,9 @@ void Swapchain::Present(VkSemaphore render_semaphore) { case VK_ERROR_OUT_OF_DATE_KHR: is_outdated = true; break; + case VK_ERROR_SURFACE_LOST_KHR: + vk::Check(result); + break; default: LOG_CRITICAL(Render_Vulkan, "Failed to present with error {}", vk::ToString(result)); break; |