demos: ensure display lists are destroyed for next generation
authorAlan Hourihane <alanh@vmware.com>
Fri, 24 Apr 2009 15:44:58 +0000 (16:44 +0100)
committerAlan Hourihane <alanh@vmware.com>
Fri, 24 Apr 2009 15:45:36 +0000 (16:45 +0100)
progs/xdemos/glxcontexts.c

index a9ff326ed5ed8439eb23db49c6a2f25aa5c84d2f..a97b62a908112591e710bcd4963e81f5fe0f9bac 100644 (file)
@@ -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);
 }