summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i830/i830_context.c
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2004-05-07 22:46:37 +0000
committerIan Romanick <idr@us.ibm.com>2004-05-07 22:46:37 +0000
commitc94a96bae4225f6c31b5908f633703c03aee7079 (patch)
treeb36bd89a611780b2a79f93de4b099339386d5f2d /src/mesa/drivers/dri/i830/i830_context.c
parent3d769b81faea6a066c07c4e5ee0df9cf12870b92 (diff)
Add support for GLX_SGI_make_current_read.
Diffstat (limited to 'src/mesa/drivers/dri/i830/i830_context.c')
-rw-r--r--src/mesa/drivers/dri/i830/i830_context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i830/i830_context.c b/src/mesa/drivers/dri/i830/i830_context.c
index 1c169e1d33..07a5267c29 100644
--- a/src/mesa/drivers/dri/i830/i830_context.c
+++ b/src/mesa/drivers/dri/i830/i830_context.c
@@ -506,11 +506,12 @@ GLboolean i830MakeCurrent(__DRIcontextPrivate *driContextPriv,
i830ContextPtr imesa = (i830ContextPtr) driContextPriv->driverPrivate;
if ( imesa->driDrawable != driDrawPriv ) {
- /* Shouldn't the readbuffer be stored also? */
imesa->driDrawable = driDrawPriv;
i830XMesaWindowMoved( imesa );
}
+ imesa->driReadable = driReadPriv;
+
_mesa_make_current2(imesa->glCtx,
(GLframebuffer *) driDrawPriv->driverPrivate,
(GLframebuffer *) driReadPriv->driverPrivate);