summaryrefslogtreecommitdiff
path: root/progs/xdemos
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@vmware.com>2009-04-24 16:44:58 +0100
committerAlan Hourihane <alanh@vmware.com>2009-04-24 16:45:36 +0100
commitb2a69ae879a3ddb1f0ca1ea184ba24587cf25786 (patch)
tree91ec60597d1f07258195f22121c1822969688457 /progs/xdemos
parent29d9abf72d73c4ccd3ad605f68ab1adf5e13c67a (diff)
demos: ensure display lists are destroyed for next generation
Diffstat (limited to 'progs/xdemos')
-rw-r--r--progs/xdemos/glxcontexts.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/xdemos/glxcontexts.c b/progs/xdemos/glxcontexts.c
index a9ff326ed5..a97b62a908 100644
--- a/progs/xdemos/glxcontexts.c
+++ b/progs/xdemos/glxcontexts.c
@@ -385,6 +385,10 @@ draw( Display *dpy, Window win )
} else
do_draw();
+ glDeleteLists(gear1, 1);
+ glDeleteLists(gear2, 1);
+ glDeleteLists(gear3, 1);
+
glXSwapBuffers(dpy, win);
glXDestroyContext(dpy, ctx);
}