diff options
author | Brian Paul <[email protected]> | 2004-06-11 17:18:26 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-06-11 17:18:26 +0000 |
commit | 3f3d11d067034be167861fcce8230911956e8c51 (patch) | |
tree | eb134a1648c4acc6b93265314ccb3c509f673ec4 /src | |
parent | 7cbc9663240bf43c5715607c2b1e53a0e04af71c (diff) |
fix some minor glitches in glGetTexParameter code
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/texstate.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index a7369716b68..de247ebcad0 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -1964,7 +1964,7 @@ _mesa_GetTexParameterfv( GLenum target, GLenum pname, GLfloat *params ) case GL_TEXTURE_LOD_BIAS: if (ctx->Extensions.EXT_texture_lod_bias) { *params = obj->LodBias; - break; + return; } break; default: @@ -1993,12 +1993,6 @@ _mesa_GetTexParameteriv( GLenum target, GLenum pname, GLint *params ) switch (pname) { case GL_TEXTURE_MAG_FILTER: *params = (GLint) obj->MagFilter; - case GL_TEXTURE_LOD_BIAS: - if (ctx->Extensions.EXT_texture_lod_bias) { - *params = (GLint) obj->LodBias; - break; - } - break; return; case GL_TEXTURE_MIN_FILTER: *params = (GLint) obj->MinFilter; @@ -2098,6 +2092,12 @@ _mesa_GetTexParameteriv( GLenum target, GLenum pname, GLint *params ) return; } break; + case GL_TEXTURE_LOD_BIAS: + if (ctx->Extensions.EXT_texture_lod_bias) { + *params = (GLint) obj->LodBias; + return; + } + break; default: ; /* silence warnings */ } |