summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorMartino Fontana <tinozzo123@gmail.com>2024-01-05 11:20:35 +0100
committerMartino Fontana <tinozzo123@gmail.com>2024-01-05 11:20:35 +0100
commit58f5bf549673d4f2d8d709799aebc71095237820 (patch)
tree27ddcb14192a3236e36286571f850ccff1e9268d /Source/Core
parent2f7f7afe6d222699c04d490f10f8aa16c11373d3 (diff)
VKGfx: Don't panic for VK_SUBOPTIMAL_KHR
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/VideoBackends/Vulkan/VKGfx.cpp2
1 files changed, 1 insertions, 1 deletions
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));
}