summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/x11/xm_buffer.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-03-09 14:33:19 -0600
committerBrian Paul <[email protected]>2009-03-09 16:27:56 -0600
commit22bac2a1a0d315172f815cb8a516bfe198b0a6f3 (patch)
tree2cd1f30d64bc852bb75b8e814734fac88ee1b953 /src/mesa/drivers/x11/xm_buffer.c
parentce0ac9006a4ceb42d7f07061f264e3092d03e640 (diff)
xmesa: set back-buffer's drawable field
Fixes back-buffer rendering when MESA_BACK_BUFFER=pixmap
Diffstat (limited to 'src/mesa/drivers/x11/xm_buffer.c')
-rw-r--r--src/mesa/drivers/x11/xm_buffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/x11/xm_buffer.c b/src/mesa/drivers/x11/xm_buffer.c
index 7ad67bc34da..821e2a8e082 100644
--- a/src/mesa/drivers/x11/xm_buffer.c
+++ b/src/mesa/drivers/x11/xm_buffer.c
@@ -229,6 +229,7 @@ alloc_back_buffer(XMesaBuffer b, GLuint width, GLuint height)
}
b->backxrb->ximage = NULL;
+ b->backxrb->drawable = b->backxrb->pixmap;
}
}