delete display lists upon exit
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 9 Aug 2005 15:14:51 +0000 (15:14 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 9 Aug 2005 15:14:51 +0000 (15:14 +0000)
progs/xdemos/glxgears.c

index cf9fcedaa24d0d3ce9f16a910380cd4f1400a497..00b05dc9807ed80fdfcc5d21f9117c83e54e6b67 100644 (file)
@@ -590,6 +590,9 @@ main(int argc, char *argv[])
 
    event_loop(dpy, win);
 
+   glDeleteLists(gear1, 1);
+   glDeleteLists(gear2, 1);
+   glDeleteLists(gear3, 1);
    glXDestroyContext(dpy, ctx);
    XDestroyWindow(dpy, win);
    XCloseDisplay(dpy);