early-access version 3954

This commit is contained in:
pineappleEA
2023-10-30 17:13:18 +01:00
parent b40dc6dc14
commit 29585a9cf6
5 changed files with 61 additions and 20 deletions

View File

@@ -147,6 +147,9 @@ bool Swapchain::AcquireNextImage() {
case VK_ERROR_OUT_OF_DATE_KHR:
is_outdated = true;
break;
case VK_ERROR_SURFACE_LOST_KHR:
vk::Check(result);
break;
default:
LOG_ERROR(Render_Vulkan, "vkAcquireNextImageKHR returned {}", vk::ToString(result));
break;
@@ -180,6 +183,9 @@ void Swapchain::Present(VkSemaphore render_semaphore) {
case VK_ERROR_OUT_OF_DATE_KHR:
is_outdated = true;
break;
case VK_ERROR_SURFACE_LOST_KHR:
vk::Check(result);
break;
default:
LOG_CRITICAL(Render_Vulkan, "Failed to present with error {}", vk::ToString(result));
break;