From 50cc7a7a0e8065da3c53e63e301759d087f19667 Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Wed, 15 Apr 2026 21:05:43 +1000 Subject: Always notify present regardless of error --- src/layer.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/layer.cc b/src/layer.cc index 1021552..d2ab1b1 100644 --- a/src/layer.cc +++ b/src/layer.cc @@ -514,10 +514,8 @@ vkQueuePresentKHR(VkQueue queue, const VkPresentInfoKHR* present_info) { const auto& vtable = context->device.vtable; const auto result = vtable.QueuePresentKHR(queue, present_info); - if (result != VK_SUCCESS && result != VK_SUBOPTIMAL_KHR) { - return result; - } + // We must *ALWAYS* notify_present regardless of the error here. assert(present_info); context->strategy->notify_present(*present_info); -- cgit v1.2.3