diff options
author | Brian Paul <[email protected]> | 2000-02-02 01:08:09 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-02-02 01:08:09 +0000 |
commit | dde5788a440667fbdf509e7f0b08bd690028117c (patch) | |
tree | ecf5aee305cf4be28f770d557e3b049364d086fc /progs | |
parent | 8038f3747d4f7a508380004c409e8bfdd4420275 (diff) |
limit Drift to [0, 1]
Diffstat (limited to 'progs')
-rw-r--r-- | progs/demos/multiarb.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/progs/demos/multiarb.c b/progs/demos/multiarb.c index 831842a7382..3ed8438aa37 100644 --- a/progs/demos/multiarb.c +++ b/progs/demos/multiarb.c @@ -1,4 +1,4 @@ -/* $Id: multiarb.c,v 1.3 1999/10/21 16:40:32 brianp Exp $ */ +/* $Id: multiarb.c,v 1.3.2.1 2000/02/02 01:08:09 brianp Exp $ */ /* * GL_ARB_multitexture demo @@ -12,6 +12,9 @@ /* * $Log: multiarb.c,v $ + * Revision 1.3.2.1 2000/02/02 01:08:09 brianp + * limit Drift to [0, 1] + * * Revision 1.3 1999/10/21 16:40:32 brianp * added -info command line option * @@ -61,6 +64,8 @@ static void Idle( void ) { if (Animate) { Drift += 0.05; + if (Drift > 1.0) + Drift = 0.0; #ifdef GL_ARB_multitexture glActiveTextureARB(GL_TEXTURE0_ARB); |