diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2004-06-11 17:18:33 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2004-06-11 17:18:33 +0000 |
commit | ce4f89d0986ded87186cd16fd0ce4fb1a589072d (patch) | |
tree | 5be29c67f0e627e7402ebee129e8cdb0511d9dbb | |
parent | 62723f54f1ed284eb88e4d1351e59c4990ef9c87 (diff) |
fix some minor glitches in glGetTexParameter code
-rw-r--r-- | src/mesa/main/texstate.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index d604ba7a95..fd6e0c26eb 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -1,8 +1,8 @@ /* * Mesa 3-D graphics library - * Version: 5.1 + * Version: 6.0.2 * - * Copyright (C) 1999-2003 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -1768,7 +1768,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: @@ -1797,12 +1797,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; @@ -1902,6 +1896,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 */ } |