Corrected call to glXMakeCurrent() when setting a NULL context.
authorEdward Rudd <urkle@outoforder.cc>
Mon, 31 Dec 2012 19:16:52 -0500
changeset 6794 a0d42781fa92
parent 6793 c8d1036975b7
child 6795 f445268492a7
Corrected call to glXMakeCurrent() when setting a NULL context. Fixes Bugzilla #1675.
src/video/x11/SDL_x11opengl.c
--- a/src/video/x11/SDL_x11opengl.c	Mon Dec 31 15:36:19 2012 -0800
+++ b/src/video/x11/SDL_x11opengl.c	Mon Dec 31 19:16:52 2012 -0500
@@ -628,7 +628,7 @@
 {
     Display *display = ((SDL_VideoData *) _this->driverdata)->display;
     Window drawable =
-        (window ? ((SDL_WindowData *) window->driverdata)->xwindow : None);
+        (context ? ((SDL_WindowData *) window->driverdata)->xwindow : None);
     GLXContext glx_context = (GLXContext) context;
     int status;