src/video/x11/SDL_x11opengl.c
changeset 11645 2088cd828335
parent 11441 f9cf3fb0b2f7
child 11811 5d94cb6b24d3
equal deleted inserted replaced
11644:05ff2be7e0d5 11645:2088cd828335
   461         if (prev_ctx && prev_drawable) {
   461         if (prev_ctx && prev_drawable) {
   462             _this->gl_data->glXMakeCurrent(display, prev_drawable, prev_ctx);
   462             _this->gl_data->glXMakeCurrent(display, prev_drawable, prev_ctx);
   463         }
   463         }
   464     }
   464     }
   465 
   465 
   466     X11_XDestroyWindow(display, w);
   466     if (w) {
       
   467         X11_XDestroyWindow(display, w);
       
   468     }
   467     X11_PumpEvents(_this);
   469     X11_PumpEvents(_this);
   468 }
   470 }
   469 
   471 
   470 /* glXChooseVisual and glXChooseFBConfig have some small differences in
   472 /* glXChooseVisual and glXChooseFBConfig have some small differences in
   471  * the attribute encoding, it can be chosen with the for_FBConfig parameter.
   473  * the attribute encoding, it can be chosen with the for_FBConfig parameter.