Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Now the program will process all events and then terminate. :)
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 23, 2008
1 parent d296ce2 commit 16e0df1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/testgl.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 16e0df1

Please sign in to comment.