aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mgl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mgl.c b/src/mgl.c
index 08cd9f8..16379e0 100644
--- a/src/mgl.c
+++ b/src/mgl.c
@@ -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);