From 94a4b4f580fa28699f9b977fb8447cceb3ba854e Mon Sep 17 00:00:00 2001 From: Bob Pendleton Date: Sat, 1 Mar 2008 20:34:36 +0000 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11opengl.c b/src/video/x11/SDL_x11opengl.c index 50f9922cc..e70f44567 100644 --- a/src/video/x11/SDL_x11opengl.c +++ b/src/video/x11/SDL_x11opengl.c @@ -251,7 +251,7 @@ X11_GL_InitExtensions(_THIS) _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