src/video/x11/SDL_x11opengl.c
changeset 1956 ba0d62354872
parent 1955 8c6106e45fc1
child 2105 12bcd4fd2606
equal deleted inserted replaced
1955:8c6106e45fc1 1956:ba0d62354872
   111                                                            "glXSwapBuffers");
   111                                                            "glXSwapBuffers");
   112 
   112 
   113     if (!_this->gl_data->glXChooseVisual ||
   113     if (!_this->gl_data->glXChooseVisual ||
   114         !_this->gl_data->glXCreateContext ||
   114         !_this->gl_data->glXCreateContext ||
   115         !_this->gl_data->glXDestroyContext ||
   115         !_this->gl_data->glXDestroyContext ||
   116         !_this->gl_data->glXMakeCurrent ||
   116         !_this->gl_data->glXMakeCurrent || !_this->gl_data->glXSwapBuffers) {
   117         !_this->gl_data->glXSwapBuffers) {
       
   118         SDL_SetError("Could not retrieve OpenGL functions");
   117         SDL_SetError("Could not retrieve OpenGL functions");
   119         return -1;
   118         return -1;
   120     }
   119     }
   121 
   120 
   122     _this->gl_config.dll_handle = handle;
   121     _this->gl_config.dll_handle = handle;