From 16e0df19608eb22a4c6d0ddf9873e708900787f0 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. :) --- 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; }