From ff06a9b069f8a1510a7b908a287f71d9cf7f8ba2 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 23 Feb 2008 05:10:40 +0000 Subject: [PATCH] Now the program will process all events and then terminate. :) --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402731 --- test/testgl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testgl.c b/test/testgl.c index 9ce9f4ed0..26e736d85 100644 --- a/test/testgl.c +++ b/test/testgl.c @@ -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; }