swrast: added braces
authorChia-I Wu <olvaffe@gmail.com>
Thu, 29 Oct 2009 04:14:01 +0000 (22:14 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 29 Oct 2009 04:14:01 +0000 (22:14 -0600)
src/mesa/swrast/s_triangle.c

index 5ecc769..d80a676 100644 (file)
@@ -1101,13 +1101,15 @@ _swrast_choose_triangle( GLcontext *ctx )
 #if CHAN_BITS != 8
                   USE(general_triangle);
 #else
-                  if (format == MESA_FORMAT_RGBA8888 && !_mesa_little_endian())
+                  if (format == MESA_FORMAT_RGBA8888 && !_mesa_little_endian()) {
                      /* We only handle RGBA8888 correctly on little endian
                       * in the optimized code above.
                       */
                      USE(general_triangle);
-                  else
+                  }
+                  else {
                      USE(affine_textured_triangle);
+                 }
 #endif
               }
            }