summaryrefslogtreecommitdiffstats
path: root/progs
diff options
context:
space:
mode:
authorAlan Hourihane <[email protected]>2009-04-24 16:44:58 +0100
committerAlan Hourihane <[email protected]>2009-04-24 17:22:52 +0100
commitbfd6bb31a6bc162413cecd23b69389fa930cbf56 (patch)
tree7ed6475c504032a5ab0371f874984c2078c04f2e /progs
parentc3e7fc394f9590ac35755e722995fd88bbfd11ce (diff)
demos: ensure display lists are destroyed for next generation
Diffstat (limited to 'progs')
-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 a9ff326ed5e..a97b62a9081 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);
}