[Mesa-dev] [PATCH] glxgears_pixmap: destroy correct pixmap id

Brian Paul brianp at vmware.com
Mon Aug 11 15:56:09 PDT 2014


On 08/11/2014 04:51 PM, Nathan Kidd wrote:
> 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);
>

Reviewed-by: Brian Paul <brianp at vmware.com>

Do you need me to commit this for you?




More information about the mesa-dev mailing list