diff options
| author | Nicolas James <nj3ahxac@gmail.com> | 2026-04-15 21:05:43 +1000 |
|---|---|---|
| committer | Nicolas James <nj3ahxac@gmail.com> | 2026-04-15 21:05:43 +1000 |
| commit | 50cc7a7a0e8065da3c53e63e301759d087f19667 (patch) | |
| tree | 3ff6b5388b893cda5d5946a490f12238f83c4859 /src/layer.cc | |
| parent | 458797a7a726d6f30be2acaea1761d489c31061a (diff) | |
Diffstat (limited to 'src/layer.cc')
| -rw-r--r-- | src/layer.cc | 4 |
1 files changed, 1 insertions, 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); |
