summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-04-25 22:11:24 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-04-25 22:11:24 +0000
commitb0f477e5dd7bf4bb2fcc5a64915cfb631bffce2b (patch)
treed79444968ea1942cd97a131a99678e1659169ccd /src
parentce4c38fe2eb0e64646afe596e46956dbbf91d993 (diff)
added GL_TEXTURE_MAX_ANISOTROPY_EXT to glGetTexParameter (bug 548812)
Diffstat (limited to 'src')
-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 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;