mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
Fix timer problem when using Fortran bindings (submitted by Bill Mitchell)
Also, add some comments about what's going on.
This commit is contained in:
parent
ab31a3a764
commit
885a95f4fa
1 changed files with 5 additions and 1 deletions
|
|
@ -172,10 +172,14 @@ handleTimeouts(void)
|
|||
GETTIMEOFDAY(&now);
|
||||
while (IS_AT_OR_AFTER(__glutTimerList->timeout, now)) {
|
||||
timer = __glutTimerList;
|
||||
__glutTimerList = timer->next;
|
||||
/* call the timer function */
|
||||
timer->func(timer->value);
|
||||
/* remove from the linked list */
|
||||
__glutTimerList = timer->next;
|
||||
/* put this timer on the "free" list */
|
||||
timer->next = freeTimerList;
|
||||
freeTimerList = timer;
|
||||
|
||||
if (!__glutTimerList)
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue