mesa: minor clean-up
authorBrian Paul <brianp@vmware.com>
Wed, 16 Sep 2009 00:09:03 +0000 (18:09 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 16 Sep 2009 00:17:43 +0000 (18:17 -0600)
src/mesa/main/fbobject.c

index 991577a7126a1ce860b40631b8ed30d4ea5595a8..13f49da5a78f2bb47a83fc7f105d4482176ae77f 100644 (file)
@@ -1960,13 +1960,13 @@ _mesa_GenerateMipmapEXT(GLenum target)
 
    _mesa_lock_texture(ctx, texObj);
    if (target == GL_TEXTURE_CUBE_MAP) {
-      int face;
-
+      GLuint face;
       for (face = 0; face < 6; face++)
         ctx->Driver.GenerateMipmap(ctx,
                                    GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB + face,
                                    texObj);
-   } else {
+   }
+   else {
       ctx->Driver.GenerateMipmap(ctx, target, texObj);
    }
    _mesa_unlock_texture(ctx, texObj);