projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29d9abf
)
demos: ensure display lists are destroyed for next generation
author
Alan Hourihane
<alanh@vmware.com>
Fri, 24 Apr 2009 15:44:58 +0000
(16:44 +0100)
committer
Alan Hourihane
<alanh@vmware.com>
Fri, 24 Apr 2009 15:45:36 +0000
(16:45 +0100)
progs/xdemos/glxcontexts.c
patch
|
blob
|
history
diff --git
a/progs/xdemos/glxcontexts.c
b/progs/xdemos/glxcontexts.c
index a9ff326ed5ed8439eb23db49c6a2f25aa5c84d2f..a97b62a908112591e710bcd4963e81f5fe0f9bac 100644
(file)
--- 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);
}