Mesa (master): st/glx: Set the drawable attribute on xmesa_buffer creation.
Stephane Marchesin
marcheu at kemper.freedesktop.org
Tue Oct 4 18:37:00 UTC 2011
Module: Mesa
Branch: master
Commit: cd9627777c3f1a55560e10912b88b1977c8bfe87
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cd9627777c3f1a55560e10912b88b1977c8bfe87
Author: Stephen White <senorblanco at chromium.org>
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;
More information about the mesa-commit
mailing list