OSDN Git Service

fix timer bug (801485)
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 8 Sep 2003 15:23:55 +0000 (15:23 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 8 Sep 2003 15:23:55 +0000 (15:23 +0000)
src/glut/glx/glut_event.c

index 0b65cf3..e453fe0 100644 (file)
@@ -172,8 +172,8 @@ handleTimeouts(void)
   GETTIMEOFDAY(&now);
   while (IS_AT_OR_AFTER(__glutTimerList->timeout, now)) {
     timer = __glutTimerList;
-    timer->func(timer->value);
     __glutTimerList = timer->next;
+    timer->func(timer->value);
     timer->next = freeTimerList;
     freeTimerList = timer;
     if (!__glutTimerList)