Skip to content

Commit

Permalink
Fix crash when switching to fullscreen with vulkan (bkaradzic#2598)
Browse files Browse the repository at this point in the history
Without this change, running examples under XWayland, SDL and vulkan
renderer results in a crash. Credit goes to @pezcode:
bkaradzic#2593 (comment)
  • Loading branch information
belegdol authored and Michael Pekar committed Mar 2, 2024
1 parent fcb7998 commit a84e2c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer_vk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7320,6 +7320,7 @@ VK_DESTROY
BX_FALLTHROUGH;

case VK_ERROR_OUT_OF_DATE_KHR:
case VK_SUBOPTIMAL_KHR:
m_needToRefreshSwapchain = true;
return false;

Expand Down

0 comments on commit a84e2c6

Please sign in to comment.