From: Stephen White Date: Mon, 3 Oct 2011 22:18:22 +0000 (-0700) Subject: st/glx: Set the drawable attribute on xmesa_buffer creation. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd9627777c3f1a55560e10912b88b1977c8bfe87;p=mesa.git st/glx: Set the drawable attribute on xmesa_buffer creation. Otherwise we'll be unable to use our pbuffers. --- diff --git a/src/gallium/state_trackers/glx/xlib/xm_api.c b/src/gallium/state_trackers/glx/xlib/xm_api.c index 8f6406ddaee..faaa5a75010 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;