[Mesa-dev] [PATCH] st/glx: Set the drawable attribute on xmesa_buffer creation.
Jose Fonseca
jfonseca at vmware.com
Tue Oct 4 06:55:18 PDT 2011
Looks good. Although I wonder if either b->drawable or b->ws.drawable could be removed.
Jose
----- Original Message -----
> From: Stephen White <senorblanco at chromium.org>
>
> Otherwise we'll be unable to use our pbuffers.
> ---
> src/gallium/state_trackers/glx/xlib/xm_api.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/gallium/state_trackers/glx/xlib/xm_api.c
> b/src/gallium/state_trackers/glx/xlib/xm_api.c
> index 8f6406d..faaa5a7 100644
> --- a/src/gallium/state_trackers/glx/xlib/xm_api.c
> +++ b/src/gallium/state_trackers/glx/xlib/xm_api.c
> @@ -448,7 +448,7 @@ create_xmesa_buffer(Drawable d, BufferType type,
> if (!b)
> return NULL;
>
> - b->ws.drawable = d;
> + b->ws.drawable = b->drawable = d;
> b->ws.visual = vis->visinfo->visual;
> b->ws.depth = vis->visinfo->depth;
>
> --
> 1.7.5.3.367.ga9930
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
More information about the mesa-dev
mailing list