Fixed crash while resizing a window on Mac OS X.
authorSam Lantinga <slouken@libsdl.org>
Sun, 13 Feb 2011 22:53:12 -0800
changeset 5293 7e9cdbbf7ba1
parent 5292 22335352d750
child 5294 4801b8bede31
Fixed crash while resizing a window on Mac OS X.
src/events/SDL_events.c
--- a/src/events/SDL_events.c	Sun Feb 13 22:30:06 2011 -0800
+++ b/src/events/SDL_events.c	Sun Feb 13 22:53:12 2011 -0800
@@ -270,7 +270,12 @@
     }
 
     /* 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) {