Module: Mesa Branch: master Commit: b2a69ae879a3ddb1f0ca1ea184ba24587cf25786 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b2a69ae879a3ddb1f0ca1ea184ba24587cf25786
Author: Alan Hourihane <al...@vmware.com> Date: Fri Apr 24 16:44:58 2009 +0100 demos: ensure display lists are destroyed for next generation --- progs/xdemos/glxcontexts.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/progs/xdemos/glxcontexts.c b/progs/xdemos/glxcontexts.c index a9ff326..a97b62a 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); } _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit