Skip to content

Commit

Permalink
Merge pull request #57 from kusma/wayland-fixes
Browse files Browse the repository at this point in the history
Wayland fixes
  • Loading branch information
gfxstrand authored Jun 17, 2024
2 parents f773953 + 92e0fe9 commit ffd5669
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1287,9 +1287,13 @@ mainloop_wayland(struct vkcube *vc)

result = vkAcquireNextImageKHR(vc->device, vc->swap_chain, 60,
vc->semaphore, VK_NULL_HANDLE, &index);
if (result == VK_SUBOPTIMAL_KHR) {
if (result == VK_SUBOPTIMAL_KHR ||
result == VK_ERROR_OUT_OF_DATE_KHR) {
recreate_swapchain(vc);
continue;
} else if (result == VK_NOT_READY ||
result == VK_TIMEOUT) {
continue;
} else if (result != VK_SUCCESS) {
return;
}
Expand Down

0 comments on commit ffd5669

Please sign in to comment.