vk: recreate swapchain on exclusive mode lost, fix #365

This commit is contained in:
Ivan 'provod' Avdeev 2022-07-09 11:59:48 -07:00 committed by Ivan Avdeev
parent 23ad2096a9
commit da97f664d7
1 changed files with 1 additions and 0 deletions

View File

@ -202,6 +202,7 @@ r_vk_swapchain_framebuffer_t R_VkSwapchainAcquire( VkSemaphore sem_image_availa
switch (acquire_result) {
case VK_ERROR_OUT_OF_DATE_KHR:
case VK_ERROR_SURFACE_LOST_KHR:
case VK_ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT:
gEngine.Con_Printf(S_WARN "vkAcquireNextImageKHR returned %s, recreating swapchain\n", R_VkResultName(acquire_result));
if (i == 0) {
force_recreate = true;