From 58f5bf549673d4f2d8d709799aebc71095237820 Mon Sep 17 00:00:00 2001 From: Martino Fontana Date: Fri, 5 Jan 2024 11:20:35 +0100 Subject: [PATCH] VKGfx: Don't panic for VK_SUBOPTIMAL_KHR --- Source/Core/VideoBackends/Vulkan/VKGfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoBackends/Vulkan/VKGfx.cpp b/Source/Core/VideoBackends/Vulkan/VKGfx.cpp index fdfeb5713b..ea4d972864 100644 --- a/Source/Core/VideoBackends/Vulkan/VKGfx.cpp +++ b/Source/Core/VideoBackends/Vulkan/VKGfx.cpp @@ -283,7 +283,7 @@ void VKGfx::BindBackbuffer(const ClearColor& clear_color) } res = m_swap_chain->AcquireNextImage(); - if (res != VK_SUCCESS) + if (res != VK_SUCCESS && res != VK_SUBOPTIMAL_KHR) PanicAlertFmt("Failed to grab image from swap chain: {:#010X} {}", Common::ToUnderlying(res), VkResultToString(res)); }