Selaa lähdekoodia

Fix timer problem when using Fortran bindings (submitted by Bill Mitchell)

Also, add some comments about what's going on.
tags/mesa_7_1_rc1
Brian 18 vuotta sitten
vanhempi
commit
885a95f4fa
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5
    1
      src/glut/glx/glut_event.c

+ 5
- 1
src/glut/glx/glut_event.c Näytä tiedosto

@@ -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…
Peruuta
Tallenna