bring over recent radeonMakeCurrent fixes for r300 to radeon/r200
authorRoland Scheidegger <sroland@tungstengraphics.com>
Sat, 12 May 2007 09:20:24 +0000 (11:20 +0200)
committerRoland Scheidegger <sroland@tungstengraphics.com>
Sat, 12 May 2007 09:20:24 +0000 (11:20 +0200)
src/mesa/drivers/dri/r200/r200_context.c
src/mesa/drivers/dri/radeon/radeon_context.c

index 0507eb86e69420f116211721534522386f44ab99..786a298cc3b98db7c9fee2e46f2a0f2ee8b58371 100644 (file)
@@ -679,7 +679,6 @@ r200MakeCurrent( __DRIcontextPrivate *driContextPriv,
         newCtx->dri.drawable = driDrawPriv;
 
         r200SetCliprects(newCtx);
-        r200UpdateWindow( newCtx->glCtx );
         r200UpdateViewportOffset( newCtx->glCtx );
       }
 
index d7c2d1407d63aacee22ac527c6514617d64d37e3..9451ec4aa5b7668799e42c50a83fb73e33141ca4 100644 (file)
@@ -604,7 +604,6 @@ radeonMakeCurrent( __DRIcontextPrivate *driContextPriv,
         newCtx->dri.drawable = driDrawPriv;
 
         radeonSetCliprects(newCtx);
-        radeonUpdateWindow( newCtx->glCtx );
         radeonUpdateViewportOffset( newCtx->glCtx );
       }
 
@@ -612,6 +611,7 @@ radeonMakeCurrent( __DRIcontextPrivate *driContextPriv,
                          (GLframebuffer *) driDrawPriv->driverPrivate,
                          (GLframebuffer *) driReadPriv->driverPrivate );
 
+      _mesa_update_state( newCtx->glCtx );
    } else {
       if (RADEON_DEBUG & DEBUG_DRI)
         fprintf(stderr, "%s ctx is null\n", __FUNCTION__);