diff src/video/SDL_video.c @ 2702:11eb9ae3c88c

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?
author Sam Lantinga <slouken@libsdl.org>
date Mon, 26 May 2008 12:43:37 +0000
parents 91e601d9df8b
children 204be4fc2726
line wrap: on
line diff
--- 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);
 }