projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b8cced
)
limit Drift to [0, 1]
author
Brian Paul
<brian.paul@tungstengraphics.com>
Wed, 2 Feb 2000 01:07:21 +0000
(
01:07
+0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Wed, 2 Feb 2000 01:07:21 +0000
(
01:07
+0000)
progs/demos/multiarb.c
patch
|
blob
|
history
diff --git
a/progs/demos/multiarb.c
b/progs/demos/multiarb.c
index 831842a7382015c0b560d90b464067bb2a4a26f7..cb22c66bbeb9062cb54a1a057b5d042c6d769901 100644
(file)
--- 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.
4 2000/02/02 01:07:21
brianp Exp $ */
/*
* GL_ARB_multitexture demo
@@
-12,6
+12,9
@@
/*
* $Log: multiarb.c,v $
+ * Revision 1.4 2000/02/02 01:07:21 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);