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

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402731
This commit is contained in:
Sam Lantinga 2008-02-23 05:10:40 +00:00
parent ba6d728feb
commit ff06a9b069

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