From: Brian Paul Date: Wed, 16 Sep 2009 00:09:03 +0000 (-0600) Subject: mesa: minor clean-up X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef6ee07fc7b356109897fdc311be74d5c6640bf9;p=mesa.git mesa: minor clean-up --- diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 991577a7126..13f49da5a78 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -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);