Module: Demos Branch: master Commit: 43202e1214104faa55dd0c352b14cde311d67bbd URL: http://cgit.freedesktop.org/mesa/demos/commit/?id=43202e1214104faa55dd0c352b14cde311d67bbd
Author: Nathan Kidd <[email protected]> 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 <[email protected]> Reviewed-by: Brian Paul <[email protected]> --- 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); _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
