src/video/x11/SDL_x11opengl.c
changeset 2244 5234868559fa
parent 2243 5523312f311e
child 2320 166400aa33d7
equal deleted inserted replaced
2243:5523312f311e 2244:5234868559fa
    87     }
    87     }
    88     handle = GL_LoadObject(path);
    88     handle = GL_LoadObject(path);
    89     if (!handle) {
    89     if (!handle) {
    90         return -1;
    90         return -1;
    91     }
    91     }
    92 
       
    93     // LoadLibrary may be called before WindowCreate!
    92     // LoadLibrary may be called before WindowCreate!
    94     X11_GL_Initialize(_this);
    93     X11_GL_Initialize(_this);
    95     
    94 
    96     /* Load new function pointers */
    95     /* Load new function pointers */
    97     _this->gl_data->glXGetProcAddress =
    96     _this->gl_data->glXGetProcAddress =
    98         (void *(*)(const GLubyte *)) GL_LoadFunction(handle,
    97         (void *(*)(const GLubyte *)) GL_LoadFunction(handle,
    99                                                      "glXGetProcAddressARB");
    98                                                      "glXGetProcAddressARB");
   100     _this->gl_data->glXChooseVisual =
    99     _this->gl_data->glXChooseVisual =