Fix a possible segfault caused by the SGI_make_current_read changes.
authorIan Romanick <idr@us.ibm.com>
Tue, 11 May 2004 16:17:49 +0000 (16:17 +0000)
committerIan Romanick <idr@us.ibm.com>
Tue, 11 May 2004 16:17:49 +0000 (16:17 +0000)
src/mesa/drivers/dri/i830/i830_context.c

index 07a5267c29f116e99f75b6448f3619f82d72fc54..b0236a5d618654d18fabfc9f77d67ab6a574e07a 100644 (file)
@@ -508,6 +508,7 @@ GLboolean i830MakeCurrent(__DRIcontextPrivate *driContextPriv,
       if ( imesa->driDrawable != driDrawPriv ) {
         imesa->driDrawable = driDrawPriv;
         i830XMesaWindowMoved( imesa );
+        imesa->mesa_drawable = driDrawPriv;
       }
 
        imesa->driReadable = driReadPriv;