Skip to content
Snippets Groups Projects
Commit 3dc17e38 authored by Sebastian Gaida's avatar Sebastian Gaida
Browse files

[#14][Code] move pollEvents to Core.beginFrame()

hides poll events from User, so i can't be forgotten
parent 05cb8f79
No related branches found
No related tags found
1 merge request!25Resolve "EventPoll mit Lambdas"
......@@ -102,8 +102,6 @@ int main(int argc, const char** argv) {
core.beginFrame();
core.renderTriangle(trianglePass, trianglePipeline, windowWidth, windowHeight);
core.endFrame();
window.pollEvents();
}
return 0;
}
......@@ -154,7 +154,7 @@ namespace vkcv
if (acquireSwapchainImage() != Result::SUCCESS) {
return;
}
m_window.pollEvents();
m_Context.getDevice().waitIdle(); // FIMXE: this is a sin against graphics programming, but its getting late - Alex
destroyTemporaryFramebuffers();
const vk::CommandBufferUsageFlags beginFlags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment