Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed crash while resizing a window on Mac OS X.

  • Loading branch information
slouken committed Feb 14, 2011
1 parent 273b830 commit 3f5776afc21ec4a6b96494f5a7cd6636db57795e
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/events/SDL_events.c
@@ -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) {

0 comments on commit 3f5776a

Please sign in to comment.