summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2008-02-23 05:10:40 +0000
committerSam Lantinga <slouken@libsdl.org>2008-02-23 05:10:40 +0000
commit7aaf553c5dfd692e879e1a36d2c7da545e058339 (patch)
treed1a54fc2edcab336ce7e5f2b3720c3ddfc917fb4
parentc97c59c2905a7cb2d9b68829206950c6dabd4244 (diff)
downloadsdl-7aaf553c5dfd692e879e1a36d2c7da545e058339.tar.gz
Now the program will process all events and then terminate. :)
-rw-r--r--test/testgl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testgl.c b/test/testgl.c
index 9ce9f4ed0..26e736d85 100644
--- a/test/testgl.c
+++ b/test/testgl.c
@@ -666,8 +666,8 @@ RunGLTest(int argc, char *argv[],
}
/* Check if there's a pending event. */
- while (!done && SDL_PollEvent(&event)) {
- done = HandleEvent(&event);
+ while (SDL_PollEvent(&event)) {
+ done |= HandleEvent(&event);
}
++frames;
}