r200: Fix mixed indetion in r200TclFallback.
authorPauli Nieminen <suokkos@gmail.com>
Sun, 21 Mar 2010 18:02:10 +0000 (20:02 +0200)
committerPauli Nieminen <suokkos@gmail.com>
Sun, 21 Mar 2010 18:27:44 +0000 (20:27 +0200)
src/mesa/drivers/dri/r200/r200_tcl.c

index f3f558b7def05c50a6e7133ab6945e426d621327..41b68cc0ca02d5d158e84be18067959b6ef59d77 100644 (file)
@@ -687,25 +687,24 @@ static char *getFallbackString(GLuint bit)
 
 void r200TclFallback( GLcontext *ctx, GLuint bit, GLboolean mode )
 {
-   r200ContextPtr rmesa = R200_CONTEXT(ctx);
-   GLuint oldfallback = rmesa->radeon.TclFallback;
-
-   if (mode) {
-      rmesa->radeon.TclFallback |= bit;
-      if (oldfallback == 0) {
-        if (R200_DEBUG & RADEON_FALLBACKS)
-           fprintf(stderr, "R200 begin tcl fallback %s\n",
-                   getFallbackString( bit ));
-        transition_to_swtnl( ctx );
-      }
-   }
-   else {
-      rmesa->radeon.TclFallback &= ~bit;
-      if (oldfallback == bit) {
-        if (R200_DEBUG & RADEON_FALLBACKS)
-           fprintf(stderr, "R200 end tcl fallback %s\n",
-                   getFallbackString( bit ));
-        transition_to_hwtnl( ctx );
-      }
-   }
+       r200ContextPtr rmesa = R200_CONTEXT(ctx);
+       GLuint oldfallback = rmesa->radeon.TclFallback;
+
+       if (mode) {
+               rmesa->radeon.TclFallback |= bit;
+               if (oldfallback == 0) {
+                       if (R200_DEBUG & RADEON_FALLBACKS)
+                               fprintf(stderr, "R200 begin tcl fallback %s\n",
+                                               getFallbackString( bit ));
+                       transition_to_swtnl( ctx );
+               }
+       } else {
+               rmesa->radeon.TclFallback &= ~bit;
+               if (oldfallback == bit) {
+                       if (R200_DEBUG & RADEON_FALLBACKS)
+                               fprintf(stderr, "R200 end tcl fallback %s\n",
+                                               getFallbackString( bit ));
+                       transition_to_hwtnl( ctx );
+               }
+       }
 }