scujkel;
This commit is contained in:
parent
79fdc8c38a
commit
1eade711ba
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue