src/video/x11/SDL_x11opengl.c
changeset 2243 5523312f311e
parent 2178 114a541cfae2
child 2244 5234868559fa
--- a/src/video/x11/SDL_x11opengl.c	Wed Aug 15 03:20:55 2007 +0000
+++ b/src/video/x11/SDL_x11opengl.c	Wed Aug 15 03:34:14 2007 +0000
@@ -90,6 +90,9 @@
         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,