summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-04-26 13:40:11 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-04-26 13:40:11 +0000
commit18385b0f4e9ceb0919c4870cd330c1d8fc240c3e (patch)
tree0715baa49990b093b3c66255262d261dd657edca
parent57c35b162e0d857a7f6ee80c9248b5ac1b8ab98d (diff)
added GL_TEXTURE_MAX_ANISOTROPY_EXT to glGetTexParameteriv()
-rw-r--r--src/mesa/main/texstate.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index a635f89276..88618c67ff 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -1,4 +1,4 @@
-/* $Id: texstate.c,v 1.69 2002/04/25 22:11:33 brianp Exp $ */
+/* $Id: texstate.c,v 1.70 2002/04/26 13:40:11 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -1611,6 +1611,12 @@ _mesa_GetTexParameteriv( GLenum target, GLenum pname, GLint *params )
case GL_TEXTURE_MAX_LEVEL:
*params = obj->MaxLevel;
return;
+ case GL_TEXTURE_MAX_ANISOTROPY_EXT:
+ if (ctx->Extensions.EXT_texture_filter_anisotropic) {
+ *params = (GLint) obj->MaxAnisotropy;
+ return;
+ }
+ break;
case GL_TEXTURE_COMPARE_SGIX:
if (ctx->Extensions.SGIX_shadow) {
*params = (GLint) obj->CompareFlag;