Skip to content

Commit

Permalink
Merge pull request #12484 from SuperSamus/vulkan-dont-panic-suboptima…
Browse files Browse the repository at this point in the history
…l-khr

VKGfx: Don't panic for VK_SUBOPTIMAL_KHR
  • Loading branch information
Tilka committed Jan 6, 2024
2 parents 6fc278b + 58f5bf5 commit 5b2ea51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/VideoBackends/Vulkan/VKGfx.cpp
Expand Up @@ -283,7 +283,7 @@ void VKGfx::BindBackbuffer(const ClearColor& clear_color)
}

res = m_swap_chain->AcquireNextImage();
if (res != VK_SUCCESS)
if (res != VK_SUCCESS && res != VK_SUBOPTIMAL_KHR)
PanicAlertFmt("Failed to grab image from swap chain: {:#010X} {}", Common::ToUnderlying(res),
VkResultToString(res));
}
Expand Down

0 comments on commit 5b2ea51

Please sign in to comment.