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:
Julian Sikorski 2021-08-30 17:33:37 +02:00 committed by GitHub
parent 0a4ed20b59
commit 9ab8494bdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7320,6 +7320,7 @@ VK_DESTROY
BX_FALLTHROUGH;
case VK_ERROR_OUT_OF_DATE_KHR:
case VK_SUBOPTIMAL_KHR:
m_needToRefreshSwapchain = true;
return false;