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

Commit

Permalink
Fixed crash while resizing a window on Mac OS X.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 14, 2011
1 parent 273b830 commit 3f5776a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/events/SDL_events.c
Expand Up @@ -270,7 +270,12 @@ SDL_FlushEvents(Uint32 minType, Uint32 maxType)
}

/* 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();
#endif

/* Lock the event queue */
if (SDL_mutexP(SDL_EventQ.lock) == 0) {
Expand Down

0 comments on commit 3f5776a

Please sign in to comment.