Reverted revision 3416, fixing bug #589
authorSam Lantinga <slouken@libsdl.org>
Mon, 26 May 2008 12:43:37 +0000
changeset 2702 11eb9ae3c88c
parent 2701 91b0e95f443a
child 2703 18a472b6d745
Reverted revision 3416, fixing bug #589 http://bugzilla.libsdl.org/show_bug.cgi?id=589 I was going to add the current window to the OpenGL context info, but that doesn't fix the case where you set the current context to NULL and then set the current context to the same window it had before. This also doesn't take into account changes to the window that might affect the context, such as viewport changing or fullscreen/windowed mode changing. Any ideas?
src/video/SDL_sysvideo.h
src/video/SDL_video.c
--- a/src/video/SDL_sysvideo.h	Thu May 08 05:06:24 2008 +0000
+++ b/src/video/SDL_sysvideo.h	Mon May 26 12:43:37 2008 +0000
@@ -127,7 +127,6 @@
 
     int display;
     SDL_Renderer *renderer;
-    SDL_GLContext context;
 
     void *userdata;
     void *driverdata;
--- a/src/video/SDL_video.c	Thu May 08 05:06:24 2008 +0000
+++ b/src/video/SDL_video.c	Mon May 26 12:43:37 2008 +0000
@@ -2525,12 +2525,6 @@
     if (!context) {
         window = NULL;
     }
-    if (window) {
-        if (window->context == context) {
-            return 0;
-        }
-        window->context = context;
-    }
     return _this->GL_MakeCurrent(_this, window, context);
 }