Corrected call to glXMakeCurrent() when setting a NULL context.
authorEdward Rudd <urkle@outoforder.cc>
Mon, 31 Dec 2012 19:16:52 -0500
changeset 6794a0d42781fa92
parent 6793 c8d1036975b7
child 6795 f445268492a7
Corrected call to glXMakeCurrent() when setting a NULL context.

Fixes Bugzilla #1675.
src/video/x11/SDL_x11opengl.c
     1.1 --- a/src/video/x11/SDL_x11opengl.c	Mon Dec 31 15:36:19 2012 -0800
     1.2 +++ b/src/video/x11/SDL_x11opengl.c	Mon Dec 31 19:16:52 2012 -0500
     1.3 @@ -628,7 +628,7 @@
     1.4  {
     1.5      Display *display = ((SDL_VideoData *) _this->driverdata)->display;
     1.6      Window drawable =
     1.7 -        (window ? ((SDL_WindowData *) window->driverdata)->xwindow : None);
     1.8 +        (context ? ((SDL_WindowData *) window->driverdata)->xwindow : None);
     1.9      GLXContext glx_context = (GLXContext) context;
    1.10      int status;
    1.11