src/video/x11/SDL_x11opengl.c
changeset 6794 a0d42781fa92
parent 6570 45855398762c
child 6817 93103b719488
equal deleted inserted replaced
6793:c8d1036975b7 6794:a0d42781fa92
   626 int
   626 int
   627 X11_GL_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context)
   627 X11_GL_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context)
   628 {
   628 {
   629     Display *display = ((SDL_VideoData *) _this->driverdata)->display;
   629     Display *display = ((SDL_VideoData *) _this->driverdata)->display;
   630     Window drawable =
   630     Window drawable =
   631         (window ? ((SDL_WindowData *) window->driverdata)->xwindow : None);
   631         (context ? ((SDL_WindowData *) window->driverdata)->xwindow : None);
   632     GLXContext glx_context = (GLXContext) context;
   632     GLXContext glx_context = (GLXContext) context;
   633     int status;
   633     int status;
   634 
   634 
   635     if (!_this->gl_data) {
   635     if (!_this->gl_data) {
   636         SDL_SetError("OpenGL not initialized");
   636         SDL_SetError("OpenGL not initialized");