[Mesa-dev] [PATCH] glxgears_pixmap: destroy correct pixmap id
Nathan Kidd
nathan-ml at spicycrypto.ca
Mon Aug 11 15:51:25 PDT 2014
Previously we'd get a GLXBadPixmap error.
Signed-off-by: Nathan Kidd <nkidd at opentext.com>
---
src/xdemos/glxgears_pixmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
1.7.10.4
More information about the mesa-dev
mailing list