Commit ff06a9b0 authored by Sam Lantinga's avatar Sam Lantinga

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

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402731
parent ba6d728f
...@@ -666,8 +666,8 @@ RunGLTest(int argc, char *argv[], ...@@ -666,8 +666,8 @@ RunGLTest(int argc, char *argv[],
} }
/* Check if there's a pending event. */ /* Check if there's a pending event. */
while (!done && SDL_PollEvent(&event)) { while (SDL_PollEvent(&event)) {
done = HandleEvent(&event); done |= HandleEvent(&event);
} }
++frames; ++frames;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment