projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c17923d
)
fghSleepForEvents immediately returns if we have an idle callback, so simply don...
author
Diederick Niehorster
<dcnieho@gmail.com>
Tue, 5 Mar 2013 17:08:32 +0000
(17:08 +0000)
committer
Diederick Niehorster
<dcnieho@gmail.com>
Tue, 5 Mar 2013 17:08:32 +0000
(17:08 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1553
7f0cb862
-5218-0410-a997-
914c9d46530a
src/fg_main.c
patch
|
blob
|
history
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;
- if( fgState.IdleCallback || fghHavePendingRedisplays( ) )
+ if( fghHavePendingRedisplays( ) )
return;
msec = fghNextTimer( );
@@
-447,8
+447,8
@@
void FGAPIENTRY glutMainLoop( void )
fgSetWindow( window );
fgState.IdleCallback( );
}
-
- fghSleepForEvents( );
+ else
+ fghSleepForEvents( );
}
}