Skip to content

Commit

Permalink
fix issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
florianvazelle committed Jun 6, 2021
1 parent 7968cd6 commit 3bf76c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ void Application::drawFrame(bool& framebufferResized) {

result = vkQueuePresentKHR(device.presentQueue(), &presentInfo);
if (result == VK_ERROR_OUT_OF_DATE_KHR || result == VK_SUBOPTIMAL_KHR || framebufferResized) {
framebufferResized = false;
recreateSwapChain(framebufferResized);
framebufferResized = false;
} else if (result != VK_SUCCESS) {
throw std::runtime_error("Failed to present swap chain image");
}
Expand Down

0 comments on commit 3bf76c8

Please sign in to comment.