Skip to content

Commit

Permalink
Fix a false-abort.
Browse files Browse the repository at this point in the history
  • Loading branch information
quou committed Dec 15, 2022
1 parent 928474d commit 7e58801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion corrosion/src/video_vk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ void video_vk_begin(bool present) {
vctx.want_recreate = false;
recreate();
goto frame_begin;
} else if (r != VK_SUCCESS) {
} else if (r != VK_SUCCESS && r != VK_SUBOPTIMAL_KHR) {
abort_with("Failed to acquire swapchain image.");
}

Expand Down

0 comments on commit 7e58801

Please sign in to comment.