diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-10-02 04:35:15 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-10-02 04:35:15 +0200 |
commit | 35d51bb0be3005fcffb151596c8ed60cfb16a452 (patch) | |
tree | 6f13bab984f295f76ed90105bf4cd4d273a7adcf /src | |
parent | 9e815f37a0124ae91ed726f6207ed9bf338e0028 (diff) |
Do not use __GL_THREADED_OPTIMIZATIONS as mgl might be used in an application with 3d graphics
Diffstat (limited to 'src')
-rw-r--r-- | src/gl.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -1,7 +1,6 @@ #include "../include/mgl/gl.h" #include <dlfcn.h> #include <stdio.h> -#include <stdlib.h> typedef struct { void **func; @@ -20,9 +19,6 @@ static void* dlsym_print_fail(void *handle, const char *name, int required) { } int mgl_gl_load(mgl_gl *self) { - /* Threaded gl optimization doesn't improve performance here, it just increases cpu usage, so force disable it if the user has enabled it */ - setenv("__GL_THREADED_OPTIMIZATIONS", "0", 1); - const char *glx_path = "libGL.so.1"; self->handle = dlopen(glx_path, RTLD_LAZY); if(!self->handle) { |