projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df7bd4b
)
added GL_TEXTURE_MAX_ANISOTROPY_EXT to glGetTexParameter (bug 548812)
author
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 25 Apr 2002 22:11:33 +0000
(22:11 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 25 Apr 2002 22:11:33 +0000
(22:11 +0000)
src/mesa/main/texstate.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texstate.c
b/src/mesa/main/texstate.c
index 6f7eb8172ea07014ef4d2ffac277b13e08c284a6..a635f89276a66ba4913a3ec05c5db7100e925bff 100644
(file)
--- a/
src/mesa/main/texstate.c
+++ b/
src/mesa/main/texstate.c
@@
-1,4
+1,4
@@
-/* $Id: texstate.c,v 1.6
8 2002/04/19 00:23:08
brianp Exp $ */
+/* $Id: texstate.c,v 1.6
9 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;