diff --git a/src/video/x11/SDL_x11opengl.c b/src/video/x11/SDL_x11opengl.c index 4cad36b83..964d90c94 100644 --- a/src/video/x11/SDL_x11opengl.c +++ b/src/video/x11/SDL_x11opengl.c @@ -90,6 +90,9 @@ X11_GL_LoadLibrary(_THIS, const char *path) return -1; } + // LoadLibrary may be called before WindowCreate! + X11_GL_Initialize(_this); + /* Load new function pointers */ _this->gl_data->glXGetProcAddress = (void *(*)(const GLubyte *)) GL_LoadFunction(handle,