# HG changeset patch # User Bob Pendleton # Date 1204403676 0 # Node ID 166400aa33d749356eb3d3f083a2780c17a11ecd # Parent 5835745560bfba01ed3b8bb7dcc27096d7185fee 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. diff -r 5835745560bf -r 166400aa33d7 src/video/x11/SDL_x11opengl.c --- a/src/video/x11/SDL_x11opengl.c Sat Feb 23 05:10:40 2008 +0000 +++ b/src/video/x11/SDL_x11opengl.c Sat Mar 01 20:34:36 2008 +0000 @@ -251,7 +251,7 @@ _this->gl_data->glXDestroyContext(display, context); } XDestroyWindow(display, w); - X11_PumpEvents(_this); + /* X11_PumpEvents(_this); */ /* can't do that because the windowlist may be inconsitent at this point */ } int