From 3f3d11d067034be167861fcce8230911956e8c51 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 11 Jun 2004 17:18:26 +0000 Subject: [PATCH] fix some minor glitches in glGetTexParameter code --- src/mesa/main/texstate.c | 14 +++++++------- 1 file 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 */ } -- 2.30.2