mesa: fix glGetInteger64v for arrays of integers
authorMarek Olšák <marek.olsak@amd.com>
Wed, 20 Jun 2018 18:55:24 +0000 (14:55 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 21 Jun 2018 18:55:15 +0000 (14:55 -0400)
Cc: 18.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/main/get.c

index 772ca00da1f7694219c402eb972fe07613b61de0..db0079beb518ad8976f86f3b1cc777638bffde52 100644 (file)
@@ -2003,7 +2003,7 @@ _mesa_GetInteger64v(GLenum pname, GLint64 *params)
 
    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: