Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pendletonrc committed Mar 1, 2008
1 parent 16e0df1 commit 94a4b4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11opengl.c
Expand Up @@ -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
Expand Down

0 comments on commit 94a4b4f

Please sign in to comment.