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;