forked from pupbrained/vulkan-test
scujkel;
This commit is contained in:
parent
79fdc8c38a
commit
1eade711ba
|
@ -663,12 +663,11 @@ class VulkanApp {
|
||||||
mFramebufferResized) {
|
mFramebufferResized) {
|
||||||
mFramebufferResized = false;
|
mFramebufferResized = false;
|
||||||
recreateSwapChain();
|
recreateSwapChain();
|
||||||
} else if (presentResult != vk::Result::eSuccess) {
|
} else if (presentResult != vk::Result::eSuccess)
|
||||||
throw std::runtime_error("Failed to present swap chain image!");
|
throw std::runtime_error("Failed to present swap chain image!");
|
||||||
}
|
|
||||||
|
|
||||||
mCurrentFrame = (mCurrentFrame + 1) % MAX_FRAMES_IN_FLIGHT;
|
mCurrentFrame = (mCurrentFrame + 1) % MAX_FRAMES_IN_FLIGHT;
|
||||||
} catch (vk::OutOfDateKHRError& err) {
|
} catch (vk::OutOfDateKHRError& /*err*/) {
|
||||||
mFramebufferResized = false;
|
mFramebufferResized = false;
|
||||||
recreateSwapChain();
|
recreateSwapChain();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue