diff options
author | Brian Paul <[email protected]> | 2009-09-15 18:09:03 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-09-15 18:17:43 -0600 |
commit | ef6ee07fc7b356109897fdc311be74d5c6640bf9 (patch) | |
tree | a6697014ff8b74381655defdf9fa8dae2cff9991 /src/mesa/main | |
parent | a31ac84d743e33dabdcbbb4998fb6b7ceccf27d4 (diff) |
mesa: minor clean-up
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/fbobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |