On the way to getting stencil working.
[mesa.git] / src / mesa / drivers / dri / sis / sis_lock.c
index 5e6a0d468d89344bd8f2387b62b9eab45b7cc927..f598e52d921ad2d587df18ac8962436f433c897d 100644 (file)
@@ -65,7 +65,7 @@ sisGetLock( sisContextPtr smesa, GLuint flags )
    if ( smesa->lastStamp != dPriv->lastStamp ) {
       sisUpdateBufferSize( smesa );
       sisUpdateClipping( smesa->glCtx );
-      sisDDDrawBuffer( smesa->glCtx, smesa->glCtx->Color.DrawBuffer );
+      sisDDDrawBuffer( smesa->glCtx, smesa->glCtx->Color.DrawBuffer[0] );
       smesa->lastStamp = dPriv->lastStamp;
    }