[Mesa-dev] [PATCH] st/glx: Set the drawable attribute on xmesa_buffer creation.

Stéphane Marchesin marcheu at chromium.org
Mon Oct 3 15:20:46 PDT 2011


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



More information about the mesa-dev mailing list