Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11opengl.c @ 2320:166400aa33d7
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.
author | Bob Pendleton <bob@pendleton.com> |
---|---|
date | Sat, 01 Mar 2008 20:34:36 +0000 |
parents | 5234868559fa |
children | c25d45b7add3 |
comparison
equal
deleted
inserted
replaced
2319:5835745560bf | 2320:166400aa33d7 |
---|---|
249 if (context) { | 249 if (context) { |
250 _this->gl_data->glXMakeCurrent(display, None, NULL); | 250 _this->gl_data->glXMakeCurrent(display, None, NULL); |
251 _this->gl_data->glXDestroyContext(display, context); | 251 _this->gl_data->glXDestroyContext(display, context); |
252 } | 252 } |
253 XDestroyWindow(display, w); | 253 XDestroyWindow(display, w); |
254 X11_PumpEvents(_this); | 254 /* X11_PumpEvents(_this); */ /* can't do that because the windowlist may be inconsitent at this point */ |
255 } | 255 } |
256 | 256 |
257 int | 257 int |
258 X11_GL_Initialize(_THIS) | 258 X11_GL_Initialize(_THIS) |
259 { | 259 { |