Now the program will process all events and then terminate. :)
authorSam Lantinga <slouken@libsdl.org>
Sat, 23 Feb 2008 05:10:40 +0000
changeset 2319 5835745560bf
parent 2318 0c653886cce7
child 2320 166400aa33d7
Now the program will process all events and then terminate. :)
test/testgl.c
--- a/test/testgl.c	Wed Feb 20 23:27:33 2008 +0000
+++ b/test/testgl.c	Sat Feb 23 05:10:40 2008 +0000
@@ -666,8 +666,8 @@
         }
 
         /* Check if there's a pending event. */
-        while (!done && SDL_PollEvent(&event)) {
-            done = HandleEvent(&event);
+        while (SDL_PollEvent(&event)) {
+            done |= HandleEvent(&event);
         }
         ++frames;
     }