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:
parent
ba6d728feb
commit
ff06a9b069
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue