Now the program will process all events and then terminate. :)

This commit is contained in:
Sam Lantinga
2008-02-23 05:10:40 +00:00
parent c6f95692fa
commit 0a91c7905c

View File

@@ -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;
}