From 54b2376adad98d91d32378efc3f241f120ba970f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 10 Oct 2021 13:56:10 +0200 Subject: Draw every frame instead of x11 expose, enable vsync (if available) --- tests/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') 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); -- cgit v1.2.3