mirror of
https://github.com/yawut/SDL.git
synced 2026-09-13 11:36:32 -05:00
Now the program will process all events and then terminate. :)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user