aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-10-10 13:56:10 +0200
committerdec05eba <dec05eba@protonmail.com>2021-10-10 13:59:44 +0200
commit54b2376adad98d91d32378efc3f241f120ba970f (patch)
tree4556581f7c51f88e9cb1e5610bc8afef524340e1 /tests
parent3b2fceed064c06d55e1cd33d51e855e909c81f75 (diff)
Draw every frame instead of x11 expose, enable vsync (if available)
Diffstat (limited to 'tests')
-rw-r--r--tests/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/main.c b/tests/main.c
index e6a4f5a..dfea218 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -26,7 +26,8 @@ int main(int argc, char **argv) {
mgl_window_show(&window);
for(;;) {
- mgl_window_event_poll(&window, 500);
+ mgl_window_event_poll(&window);
+ mgl_window_draw(&window);
}
mgl_window_deinit(&window);