summaryrefslogtreecommitdiff
path: root/extras/Mesa/progs/xdemos
diff options
context:
space:
mode:
Diffstat (limited to 'extras/Mesa/progs/xdemos')
-rw-r--r--extras/Mesa/progs/xdemos/glxgears.c2
-rw-r--r--extras/Mesa/progs/xdemos/glxpbdemo.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/extras/Mesa/progs/xdemos/glxgears.c b/extras/Mesa/progs/xdemos/glxgears.c
index 59691513e..a82a0b9bc 100644
--- a/extras/Mesa/progs/xdemos/glxgears.c
+++ b/extras/Mesa/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);
diff --git a/extras/Mesa/progs/xdemos/glxpbdemo.c b/extras/Mesa/progs/xdemos/glxpbdemo.c
index 9bdf2ff74..91fd30dca 100644
--- a/extras/Mesa/progs/xdemos/glxpbdemo.c
+++ b/extras/Mesa/progs/xdemos/glxpbdemo.c
@@ -138,7 +138,6 @@ static int
Setup(int width, int height)
{
#if defined(GLX_VERSION_1_3) || defined(GLX_VERSION_1_4)
- XVisualInfo *visInfo;
GLXContext glCtx;
/* Open the X display */
@@ -175,7 +174,6 @@ Setup(int width, int height)
}
else {
printf("Error: Couldn't create GLXContext\n");
- XFree(visInfo);
XCloseDisplay(gDpy);
return 0;
}
@@ -183,7 +181,6 @@ Setup(int width, int height)
/* Bind context to pbuffer */
if (!glXMakeCurrent(gDpy, gPBuffer, glCtx)) {
printf("Error: glXMakeCurrent failed\n");
- XFree(visInfo);
XCloseDisplay(gDpy);
return 0;
}