Module: Mesa
Branch: master
Commit: cd9627777c3f1a55560e10912b88b1977c8bfe87
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=cd9627777c3f1a55560e10912b88b1977c8bfe87

Author: Stephen White <[email protected]>
Date:   Mon Oct  3 15:18:22 2011 -0700

st/glx: Set the drawable attribute on xmesa_buffer creation.

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;
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to