mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 03:00:24 +01:00
wrap angle value (Philipp Klaus Krause)
This commit is contained in:
parent
e57b6d5a4f
commit
07553c58fd
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue