mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
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
This commit is contained in:
@@ -7320,6 +7320,7 @@ VK_DESTROY
|
||||
BX_FALLTHROUGH;
|
||||
|
||||
case VK_ERROR_OUT_OF_DATE_KHR:
|
||||
case VK_SUBOPTIMAL_KHR:
|
||||
m_needToRefreshSwapchain = true;
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user