From: Brian Paul Date: Sat, 23 Oct 2004 18:55:48 +0000 (+0000) Subject: wrap angle value (Philipp Klaus Krause) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07553c58fd068a0e1b43e564fba1baffa6ea222d;p=mesa.git wrap angle value (Philipp Klaus Krause) --- diff --git a/progs/xdemos/glxgears.c b/progs/xdemos/glxgears.c index 59691513e2c..a82a0b9bc71 100644 --- a/progs/xdemos/glxgears.c +++ b/progs/xdemos/glxgears.c @@ -424,6 +424,8 @@ event_loop(Display *dpy, Window win) /* next frame */ angle += 2.0; + if (angle > 3600.0) + angle -= 3600.0; draw(); glXSwapBuffers(dpy, win);