test/testgl.c
changeset 2319 5835745560bf
parent 2318 0c653886cce7
child 2710 44e49d3fa6cf
     1.1 --- a/test/testgl.c	Wed Feb 20 23:27:33 2008 +0000
     1.2 +++ b/test/testgl.c	Sat Feb 23 05:10:40 2008 +0000
     1.3 @@ -666,8 +666,8 @@
     1.4          }
     1.5  
     1.6          /* Check if there's a pending event. */
     1.7 -        while (!done && SDL_PollEvent(&event)) {
     1.8 -            done = HandleEvent(&event);
     1.9 +        while (SDL_PollEvent(&event)) {
    1.10 +            done |= HandleEvent(&event);
    1.11          }
    1.12          ++frames;
    1.13      }