From 1eade711baea1fe4ac06fc95a0df6035d37eee90 Mon Sep 17 00:00:00 2001 From: Mars Date: Mon, 7 Oct 2024 16:04:49 -0400 Subject: [PATCH] scujkel; --- src/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 212db98..6e6249c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -663,12 +663,11 @@ class VulkanApp { mFramebufferResized) { mFramebufferResized = false; recreateSwapChain(); - } else if (presentResult != vk::Result::eSuccess) { + } else if (presentResult != vk::Result::eSuccess) throw std::runtime_error("Failed to present swap chain image!"); - } mCurrentFrame = (mCurrentFrame + 1) % MAX_FRAMES_IN_FLIGHT; - } catch (vk::OutOfDateKHRError& err) { + } catch (vk::OutOfDateKHRError& /*err*/) { mFramebufferResized = false; recreateSwapChain(); return;