src/video/x11/SDL_x11opengl.c
changeset 6794 a0d42781fa92
parent 6570 45855398762c
child 6817 93103b719488
--- 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;