test/testgl.c
changeset 2318 0c653886cce7
parent 2267 c785543d1843
child 2319 5835745560bf
     1.1 --- a/test/testgl.c	Mon Feb 11 21:06:32 2008 +0000
     1.2 +++ b/test/testgl.c	Wed Feb 20 23:27:33 2008 +0000
     1.3 @@ -666,7 +666,7 @@
     1.4          }
     1.5  
     1.6          /* Check if there's a pending event. */
     1.7 -        while (SDL_PollEvent(&event)) {
     1.8 +        while (!done && SDL_PollEvent(&event)) {
     1.9              done = HandleEvent(&event);
    1.10          }
    1.11          ++frames;