summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/triangle/ex_triangle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/triangle/ex_triangle.c b/examples/triangle/ex_triangle.c
index 50f135a..4aa9e96 100644
--- a/examples/triangle/ex_triangle.c
+++ b/examples/triangle/ex_triangle.c
@@ -45,6 +45,7 @@ int main() {
// Main loop
while (!should_exit(core)) {
+ glfwPollEvents();
input_update(&core->input);
render_frame_begin(&core->renderer);
@@ -72,8 +73,7 @@ int main() {
gpu_backend_end_frame();
render_frame_end(&core->renderer);
- glfwSwapBuffers(core->renderer.window);
- glfwPollEvents();
+ // glfwSwapBuffers(core->renderer.window);
}
gpu_backend_shutdown();