comment on timer checking, are timers always sorted by triggertime? Else the code is wrong...

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1555 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dcnieho 2013-03-06 03:50:14 +00:00
parent 9c2936cd85
commit 05fc819508

View File

@ -221,6 +221,7 @@ static void fghCheckTimers( void )
SFG_Timer *timer = fgState.Timers.First; SFG_Timer *timer = fgState.Timers.First;
if( timer->TriggerTime > checkTime ) if( timer->TriggerTime > checkTime )
/* XXX: are timers always sorted by triggerTime? If not, this and fghNextTimer are wrong */
break; break;
fgListRemove( &fgState.Timers, &timer->Node ); fgListRemove( &fgState.Timers, &timer->Node );