Fixed crash while resizing a window on Mac OS X.
This commit is contained in:
parent
da8fc93d71
commit
98f0920828
1 changed files with 5 additions and 0 deletions
|
@ -270,7 +270,12 @@ SDL_FlushEvents(Uint32 minType, Uint32 maxType)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Make sure the events are current */
|
/* Make sure the events are current */
|
||||||
|
#if 0
|
||||||
|
/* Actually, we can't do this since we might be flushing while processing
|
||||||
|
a resize event, and calling this might trigger further resize events.
|
||||||
|
*/
|
||||||
SDL_PumpEvents();
|
SDL_PumpEvents();
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Lock the event queue */
|
/* Lock the event queue */
|
||||||
if (SDL_mutexP(SDL_EventQ.lock) == 0) {
|
if (SDL_mutexP(SDL_EventQ.lock) == 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue