Skip to content

Commit

Permalink
vulkan: Fix crash when resizing window. (shadps4-emu#1142)
Browse files Browse the repository at this point in the history
  • Loading branch information
squidbus authored Sep 29, 2024
1 parent 40d00e3 commit 5e98a3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video_core/renderer_vulkan/vk_swapchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void Swapchain::Present() {
};

auto result = instance.GetPresentQueue().presentKHR(present_info);
if (result == vk::Result::eErrorOutOfDateKHR) {
if (result == vk::Result::eErrorOutOfDateKHR || result == vk::Result::eSuboptimalKHR) {
needs_recreation = true;
} else {
ASSERT_MSG(result == vk::Result::eSuccess, "Swapchain presentation failed: {}",
Expand Down

0 comments on commit 5e98a3e

Please sign in to comment.