summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-10-29 20:31:05 +0100
committerLiam <byteslice@airmail.cc>2023-10-29 20:31:05 +0100
commit8427b9d49d2332c5a2b6a8d68c531a43f9cc3ad1 (patch)
tree572e93950145bdf4ec8eb8ce1a58d33b925468fb /src/video_core/renderer_vulkan
parentMerge pull request #11866 from liamwhite/more-qt-nonsense (diff)
downloadyuzu-8427b9d49d2332c5a2b6a8d68c531a43f9cc3ad1.tar
yuzu-8427b9d49d2332c5a2b6a8d68c531a43f9cc3ad1.tar.gz
yuzu-8427b9d49d2332c5a2b6a8d68c531a43f9cc3ad1.tar.bz2
yuzu-8427b9d49d2332c5a2b6a8d68c531a43f9cc3ad1.tar.lz
yuzu-8427b9d49d2332c5a2b6a8d68c531a43f9cc3ad1.tar.xz
yuzu-8427b9d49d2332c5a2b6a8d68c531a43f9cc3ad1.tar.zst
yuzu-8427b9d49d2332c5a2b6a8d68c531a43f9cc3ad1.zip
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r--src/video_core/renderer_vulkan/vk_swapchain.cpp6
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;