mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
fix some minor glitches in glGetTexParameter code
This commit is contained in:
parent
7cbc966324
commit
3f3d11d067
1 changed files with 7 additions and 7 deletions
|
|
@ -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 */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue