From: Alan Hourihane Date: Fri, 24 Apr 2009 15:44:58 +0000 (+0100) Subject: demos: ensure display lists are destroyed for next generation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2a69ae879a3ddb1f0ca1ea184ba24587cf25786;p=mesa.git demos: ensure display lists are destroyed for next generation --- 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); }