summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get.c
diff options
context:
space:
mode:
authorFelix Kuehling <fxkuehl@gmx.de>2005-04-30 02:09:23 +0000
committerFelix Kuehling <fxkuehl@gmx.de>2005-04-30 02:09:23 +0000
commit47d18cbb6457316896524eb383f864d0ac0d638d (patch)
tree9848d04dc4a2424d81cb57875291889ee707d447 /src/mesa/main/get.c
parentf1d053b19ad3839fb9d1d39350336f4420da255f (diff)
downloadexternal_mesa3d-47d18cbb6457316896524eb383f864d0ac0d638d.zip
external_mesa3d-47d18cbb6457316896524eb383f864d0ac0d638d.tar.gz
external_mesa3d-47d18cbb6457316896524eb383f864d0ac0d638d.tar.bz2
Fixed bogus ENUM_TO_BOOLEAN in
_mesa_GetIntegerv(GL_COMPRESSED_TEXTURE_FORMATS_ARB). Must be ENUM_TO_INT. mesa/progs/tests/texenv now lists supported compressed texture formats correctly.
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r--src/mesa/main/get.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 4e346fb..78f776c 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -4769,7 +4769,7 @@ _mesa_GetIntegerv( GLenum pname, GLint *params )
GLint formats[100];
GLuint i, n = _mesa_get_compressed_formats(ctx, formats);
for (i = 0; i < n; i++)
- params[i] = ENUM_TO_BOOLEAN(formats[i]);
+ params[i] = ENUM_TO_INT(formats[i]);
}
break;
case GL_ARRAY_ELEMENT_LOCK_FIRST_EXT: