fix some minor glitches in glGetTexParameter code
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 11 Jun 2004 17:18:26 +0000 (17:18 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 11 Jun 2004 17:18:26 +0000 (17:18 +0000)
src/mesa/main/texstate.c

index a7369716b68731eef7267c10b4821ebb69309744..de247ebcad0d6e4557b061f21605d9f1216da770 100644 (file)
@@ -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 */
    }