summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/glut/glx/glut_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glut/glx/glut_event.c b/src/glut/glx/glut_event.c
index 0b65cf3039..e453fe0389 100644
--- a/src/glut/glx/glut_event.c
+++ b/src/glut/glx/glut_event.c
@@ -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)