This commit is contained in:
Mars 2024-10-07 16:04:49 -04:00
parent 79fdc8c38a
commit 1eade711ba
Signed by untrusted user: pupbrained
GPG key ID: 874E22DF2F9DFCB5

View file

@ -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;