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 a9ff326..a97b62a 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);
 }