add LOCK_HARDWARE/UNLOCK_HARDWARE to radeonClear so state gets updated which hopefull...
authorRoland Scheidegger <rscheidegger@gmx.ch>
Fri, 12 Nov 2004 18:29:51 +0000 (18:29 +0000)
committerRoland Scheidegger <rscheidegger@gmx.ch>
Fri, 12 Nov 2004 18:29:51 +0000 (18:29 +0000)
src/mesa/drivers/dri/radeon/radeon_ioctl.c

index 772118cfc07fc5dce8b90be09809ff0c631822de..aa982cfef965121031fa7d1ddf7daf2ee688b7e9 100644 (file)
@@ -1021,6 +1021,13 @@ static void radeonClear( GLcontext *ctx, GLbitfield mask, GLboolean all,
               __FUNCTION__, all, cx, cy, cw, ch );
    }
 
+   {
+      LOCK_HARDWARE( rmesa );
+      UNLOCK_HARDWARE( rmesa );
+      if ( dPriv->numClipRects == 0 ) 
+        return;
+   }
+   
    radeonFlush( ctx ); 
 
    if ( mask & DD_FRONT_LEFT_BIT ) {