diff options
author | Brian Paul <[email protected]> | 2002-04-25 22:11:33 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-04-25 22:11:33 +0000 |
commit | 57c35b162e0d857a7f6ee80c9248b5ac1b8ab98d (patch) | |
tree | 9ae056dbfe539c820ff425bee55a7be24aac6edb /src/mesa/main | |
parent | df7bd4bf11dfab769cab2043c53ca99a347ca1a5 (diff) |
added GL_TEXTURE_MAX_ANISOTROPY_EXT to glGetTexParameter (bug 548812)
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/texstate.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index 6f7eb8172ea..a635f89276a 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -1,4 +1,4 @@ -/* $Id: texstate.c,v 1.68 2002/04/19 00:23:08 brianp Exp $ */ +/* $Id: texstate.c,v 1.69 2002/04/25 22:11:33 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1477,6 +1477,12 @@ _mesa_GetTexParameterfv( GLenum target, GLenum pname, GLfloat *params ) case GL_TEXTURE_MAX_LEVEL: *params = (GLfloat) obj->MaxLevel; return; + case GL_TEXTURE_MAX_ANISOTROPY_EXT: + if (ctx->Extensions.EXT_texture_filter_anisotropic) { + *params = obj->MaxAnisotropy; + return; + } + break; case GL_TEXTURE_COMPARE_SGIX: if (ctx->Extensions.SGIX_shadow) { *params = (GLfloat) obj->CompareFlag; |