From b2a69ae879a3ddb1f0ca1ea184ba24587cf25786 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Fri, 24 Apr 2009 16:44:58 +0100 Subject: [PATCH] demos: ensure display lists are destroyed for next generation --- progs/xdemos/glxcontexts.c | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- 2.30.2