diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-04-25 22:11:24 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2002-04-25 22:11:24 +0000 |
commit | b0f477e5dd7bf4bb2fcc5a64915cfb631bffce2b (patch) | |
tree | d79444968ea1942cd97a131a99678e1659169ccd /src | |
parent | ce4c38fe2eb0e64646afe596e46956dbbf91d993 (diff) |
added GL_TEXTURE_MAX_ANISOTROPY_EXT to glGetTexParameter (bug 548812)
Diffstat (limited to 'src')
-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 20b410aee2..ad7157c524 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -1,4 +1,4 @@ -/* $Id: texstate.c,v 1.58.2.5 2002/04/12 21:17:53 brianp Exp $ */ +/* $Id: texstate.c,v 1.58.2.6 2002/04/25 22:11:24 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1383,6 +1383,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; |