summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-09-25 19:57:34 -0600
committerBrian Paul <[email protected]>2009-01-06 14:18:57 -0700
commitc3be5e4a050561e25854f38aa221bbf657848762 (patch)
treed22e0ac35c074025fb4a6c71cfba5eae12b55d6c /src/mesa/main/get.c
parentbec14ebf5e4253cdb9e7610273cdd38360394404 (diff)
mesa: fix cast/conversion for optional code
(cherry picked from commit 1e3a44fab068f00378613456036716d0c3772969)
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 19cc4806f9d..80dcea9bcac 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -1092,7 +1092,7 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params )
GLuint i, n = _mesa_get_compressed_formats(ctx, formats, GL_FALSE);
ASSERT(n <= 100);
for (i = 0; i < n; i++)
- params[i] = ENUM_TO_INT(formats[i]);
+ params[i] = ENUM_TO_BOOLEAN(formats[i]);
}
break;
case GL_ARRAY_ELEMENT_LOCK_FIRST_EXT: