Fixed crash while resizing a window on Mac OS X.
authorSam Lantinga <slouken@libsdl.org>
Sun, 13 Feb 2011 22:53:12 -0800
changeset 52937e9cdbbf7ba1
parent 5292 22335352d750
child 5294 4801b8bede31
Fixed crash while resizing a window on Mac OS X.
src/events/SDL_events.c
     1.1 --- a/src/events/SDL_events.c	Sun Feb 13 22:30:06 2011 -0800
     1.2 +++ b/src/events/SDL_events.c	Sun Feb 13 22:53:12 2011 -0800
     1.3 @@ -270,7 +270,12 @@
     1.4      }
     1.5  
     1.6      /* Make sure the events are current */
     1.7 +#if 0
     1.8 +    /* Actually, we can't do this since we might be flushing while processing
     1.9 +       a resize event, and calling this might trigger further resize events.
    1.10 +    */
    1.11      SDL_PumpEvents();
    1.12 +#endif
    1.13  
    1.14      /* Lock the event queue */
    1.15      if (SDL_mutexP(SDL_EventQ.lock) == 0) {