# HG changeset patch # User Sam Lantinga # Date 1211805817 0 # Node ID 11eb9ae3c88c3f7c98f0eeedf5756804eb24c4c7 # Parent 91b0e95f443a25029161d70ba76d01613b9acad7 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? diff -r 91b0e95f443a -r 11eb9ae3c88c src/video/SDL_sysvideo.h --- 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; diff -r 91b0e95f443a -r 11eb9ae3c88c src/video/SDL_video.c --- 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); }