diff options
-rw-r--r-- | src/mgl.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -6,9 +6,7 @@ #include <stdbool.h> #include <string.h> #include <stdio.h> -#ifndef NDEBUG #include <stdlib.h> -#endif static mgl_context context; static int init_count = 0; @@ -57,6 +55,7 @@ static bool xrandr_is_supported(Display *display, int *event_base, int *error_ba int mgl_init(void) { ++init_count; if(init_count == 1) { + setenv("__GL_MaxFramesAllowed", "1", true); memset(&context, 0, sizeof(context)); context.connection = XOpenDisplay(NULL); |