summaryrefslogtreecommitdiff
path: root/progs/demos/cubemap.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-08-10 15:39:00 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-08-10 15:39:00 +0000
commit52a5cc0baef6cb1a6b516e28b93302a6da9c7ebe (patch)
tree4e2ac57cb961a980dbb79439d1c9980fa5677d64 /progs/demos/cubemap.c
parent5222662f520b4b116116ac01b3ed1d74193a09d9 (diff)
minor anim tweak
Diffstat (limited to 'progs/demos/cubemap.c')
-rw-r--r--progs/demos/cubemap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/progs/demos/cubemap.c b/progs/demos/cubemap.c
index 53605cdfa4..ee0336547b 100644
--- a/progs/demos/cubemap.c
+++ b/progs/demos/cubemap.c
@@ -46,6 +46,7 @@
static GLfloat Xrot = 0, Yrot = 0;
static GLfloat EyeDist = 10;
static GLboolean use_vertex_arrays = GL_FALSE;
+static GLboolean anim = GL_TRUE;
#define eps1 0.99
#define br 20.0 /* box radius */
@@ -219,7 +220,6 @@ static void set_mode(GLuint mode)
static void key(unsigned char k, int x, int y)
{
- static GLboolean anim = GL_TRUE;
static GLuint mode = 0;
(void) x;
(void) y;
@@ -466,8 +466,9 @@ int main( int argc, char *argv[] )
glutReshapeFunc( reshape );
glutKeyboardFunc( key );
glutSpecialFunc( specialkey );
- glutIdleFunc( idle );
glutDisplayFunc( draw );
+ if (anim)
+ glutIdleFunc(idle);
usage();
glutMainLoop();
return 0;