Demos (master): glxgears_pixmap: destroy correct pixmap id

Brian Paul brianp at kemper.freedesktop.org
Tue Aug 12 13:02:27 UTC 2014


Module: Demos
Branch: master
Commit: 43202e1214104faa55dd0c352b14cde311d67bbd
URL:    http://cgit.freedesktop.org/mesa/demos/commit/?id=43202e1214104faa55dd0c352b14cde311d67bbd

Author: Nathan Kidd <nathan-ml at spicycrypto.ca>
Date:   Mon Aug 11 16:51:00 2014 -0600

glxgears_pixmap: destroy correct pixmap id

Previously we'd get a GLXBadPixmap error.

Signed-off-by: Nathan Kidd <nkidd at opentext.com>
Reviewed-by: Brian Paul <brianp at vmware.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);
 




More information about the mesa-commit mailing list