[Mesa-dev] [PATCH] mesa: fix glGetInteger64v for arrays of integers
Marek Olšák
maraeo at gmail.com
Thu Jun 21 01:02:10 UTC 2018
From: Marek Olšák <marek.olsak at amd.com>
Cc: 18.1 <mesa-stable at lists.freedesktop.org>
---
src/mesa/main/get.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 772ca00da1f..db0079beb51 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -1996,21 +1996,21 @@ _mesa_GetInteger64v(GLenum pname, GLint64 *params)
case TYPE_ENUM:
params[0] = ((GLint *) p)[0];
break;
case TYPE_ENUM16:
params[0] = ((GLenum16 *) p)[0];
break;
case TYPE_INT_N:
for (i = 0; i < v.value_int_n.n; i++)
- params[i] = INT_TO_BOOLEAN(v.value_int_n.ints[i]);
+ params[i] = v.value_int_n.ints[i];
break;
case TYPE_UINT_4:
params[3] = ((GLuint *) p)[3];
case TYPE_UINT_3:
params[2] = ((GLuint *) p)[2];
case TYPE_UINT_2:
params[1] = ((GLuint *) p)[1];
case TYPE_UINT:
params[0] = ((GLuint *) p)[0];
--
2.17.1
More information about the mesa-dev
mailing list