Module: Demos
Branch: master
Commit: e1b0cdbce34e255b52d0bc46416b450ad0c85624
URL:    
http://cgit.freedesktop.org/mesa/demos/commit/?id=e1b0cdbce34e255b52d0bc46416b450ad0c85624

Author: Brian Paul <[email protected]>
Date:   Fri Aug  2 16:13:36 2013 -0600

gears: added -noanim flag

---

 src/demos/gears.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/demos/gears.c b/src/demos/gears.c
index dbbe765..113ec30 100644
--- a/src/demos/gears.c
+++ b/src/demos/gears.c
@@ -4,6 +4,7 @@
  * Command line options:
  *    -info      print GL implementation information
  *    -exit      automatically exit after 30 seconds
+ *    -noanim    turn off animation
  *
  *
  * Brian Paul
@@ -372,6 +373,9 @@ init(int argc, char *argv[])
       autoexit = 30;
       printf("Auto Exit after %i seconds.\n", autoexit );
     }
+    else if (strcmp(argv[i], "-noanim") == 0) {
+      Animate = GL_FALSE;
+    }
   }
 }
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to