Skip to content
Snippets Groups Projects

Resolve "Resizing-Event"

Merged Ghost User requested to merge 34-resizing-event into develop
1 file
+ 7
5
Compare changes
  • Side-by-side
  • Inline
+ 7
5
@@ -113,6 +113,7 @@ namespace vkcv
);
if (acquireResult != vk::Result::eSuccess) {
std::cerr << vk::to_string(acquireResult) << std::endl;
return Result::ERROR;
}
@@ -130,12 +131,14 @@ namespace vkcv
m_swapchain.updateSwapchain(m_Context, m_window);
m_swapchainImageViews = createImageViews(m_Context, m_swapchain);
}
if (acquireSwapchainImage() != Result::SUCCESS) {
return;
std::cerr << "Acquire failed!" << std::endl;
m_currentSwapchainImageIndex = std::numeric_limits<uint32_t>::max();
}
m_Context.getDevice().waitIdle(); // TODO: this is a sin against graphics programming, but its getting late - Alex
m_Context.getDevice().waitIdle(); // TODO: this is a sin against graphics programming, but its getting late - Alex
}
void Core::renderMesh(
@@ -267,7 +270,6 @@ namespace vkcv
};
submitCommands(submitInfo, submitFunction, finishFunction);
}
void Core::endFrame() {
Loading