From a84e2c6d1c5c574e1ba12894b05c91ef4c9983d9 Mon Sep 17 00:00:00 2001 From: Julian Sikorski Date: Mon, 30 Aug 2021 17:33:37 +0200 Subject: [PATCH] Fix crash when switching to fullscreen with vulkan (#2598) Without this change, running examples under XWayland, SDL and vulkan renderer results in a crash. Credit goes to @pezcode: https://github.com/bkaradzic/bgfx/issues/2593#issuecomment-905462527 --- src/renderer_vk.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer_vk.cpp b/src/renderer_vk.cpp index c857916c22..c49ffc2ae3 100644 --- a/src/renderer_vk.cpp +++ b/src/renderer_vk.cpp @@ -7320,6 +7320,7 @@ VK_DESTROY BX_FALLTHROUGH; case VK_ERROR_OUT_OF_DATE_KHR: + case VK_SUBOPTIMAL_KHR: m_needToRefreshSwapchain = true; return false;