summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Kidd <nathan-ml@spicycrypto.ca>2014-08-11 16:51:00 -0600
committerBrian Paul <brianp@vmware.com>2014-08-12 07:01:33 -0600
commit43202e1214104faa55dd0c352b14cde311d67bbd (patch)
tree39b8411b4dcad48c962d452b81dfbe9fcf84b06f
parent3d3388d5d73e978bdabdd123b756ed9b76d9b900 (diff)
downloadmesa-demos-43202e1214104faa55dd0c352b14cde311d67bbd.zip
mesa-demos-43202e1214104faa55dd0c352b14cde311d67bbd.tar.xz
glxgears_pixmap: destroy correct pixmap id
Previously we'd get a GLXBadPixmap error. Signed-off-by: Nathan Kidd <nkidd@opentext.com> Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r--src/xdemos/glxgears_pixmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdemos/glxgears_pixmap.c b/src/xdemos/glxgears_pixmap.c
index f2bb013..afd5828 100644
--- a/src/xdemos/glxgears_pixmap.c
+++ b/src/xdemos/glxgears_pixmap.c
@@ -540,7 +540,7 @@ main(int argc, char *argv[])
glXDestroyContext(dpy, gears.ctx);
XDestroyWindow(dpy, gears.win);
- glXDestroyPixmap(dpy, gears.pixmap);
+ glXDestroyPixmap(dpy, gears.glxpixmap);
XFreePixmap(dpy, gears.pixmap);
XCloseDisplay(dpy);