projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fghSleepForEvents immediately returns if we have an idle callback, so simply don...
[freeglut]
/
src
/
fg_main.c
diff --git
a/src/fg_main.c
b/src/fg_main.c
index
4c8bdd6
..
9dda2a3
100644
(file)
--- a/
src/fg_main.c
+++ b/
src/fg_main.c
@@
-374,7
+374,7
@@
static void fghSleepForEvents( void )
{
fg_time_t msec;
{
fg_time_t msec;
- if( fgState.IdleCallback || fghHavePendingRedisplays( ) )
+ if( fghHavePendingRedisplays( ) )
return;
msec = fghNextTimer( );
return;
msec = fghNextTimer( );
@@
-447,8
+447,8
@@
void FGAPIENTRY glutMainLoop( void )
fgSetWindow( window );
fgState.IdleCallback( );
}
fgSetWindow( window );
fgState.IdleCallback( );
}
-
- fghSleepForEvents( );
+ else
+ fghSleepForEvents( );
}
}
}
}