From: Ian Romanick Date: Tue, 11 May 2004 16:17:49 +0000 (+0000) Subject: Fix a possible segfault caused by the SGI_make_current_read changes. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=366a27d2b99ef9e15623d139e74b596161ddb4de;p=mesa.git Fix a possible segfault caused by the SGI_make_current_read changes. --- diff --git a/src/mesa/drivers/dri/i830/i830_context.c b/src/mesa/drivers/dri/i830/i830_context.c index 07a5267c29f..b0236a5d618 100644 --- a/src/mesa/drivers/dri/i830/i830_context.c +++ b/src/mesa/drivers/dri/i830/i830_context.c @@ -508,6 +508,7 @@ GLboolean i830MakeCurrent(__DRIcontextPrivate *driContextPriv, if ( imesa->driDrawable != driDrawPriv ) { imesa->driDrawable = driDrawPriv; i830XMesaWindowMoved( imesa ); + imesa->mesa_drawable = driDrawPriv; } imesa->driReadable = driReadPriv;