Deleted a call to X__PumpEvents at the end of X11_GL_InitExtensions(). This function is being called from SDL_RecreateWindow at a point when the numwindows value in
authorBob Pendleton <bob@pendleton.com>
Sat, 01 Mar 2008 20:34:36 +0000
changeset 2320166400aa33d7
parent 2319 5835745560bf
child 2321 c5feceb0395e
Deleted a call to X__PumpEvents at the end of X11_GL_InitExtensions(). This function is being called from SDL_RecreateWindow at a point when the numwindows value in
is incorrect. The result is that an illegal access is being made in X_PumpEvents when it tries to look up the windows ID of the source of an event. Taking out that
call does not seem to have any effect on the testgl. But, I would be happy if someone else took a look at this problem and found a fix higher up the stack.
src/video/x11/SDL_x11opengl.c
     1.1 --- a/src/video/x11/SDL_x11opengl.c	Sat Feb 23 05:10:40 2008 +0000
     1.2 +++ b/src/video/x11/SDL_x11opengl.c	Sat Mar 01 20:34:36 2008 +0000
     1.3 @@ -251,7 +251,7 @@
     1.4          _this->gl_data->glXDestroyContext(display, context);
     1.5      }
     1.6      XDestroyWindow(display, w);
     1.7 -    X11_PumpEvents(_this);
     1.8 +    /*     X11_PumpEvents(_this); */ /* can't do that because the windowlist may be inconsitent at this point */
     1.9  }
    1.10  
    1.11  int