mesa: fix warning in 32 bits build
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 7 Nov 2019 14:06:24 +0000 (15:06 +0100)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 19 Nov 2019 07:49:45 +0000 (08:49 +0100)
Fixes: febedee4f6c ("mesa: add EXT_dsa glGetVertexArray* 4 functions")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/varray.c

index f93ad81098498e7e8eb9168240a256bf84d28d9a..048e836b60cef7534236248737b458e831f10574 100644 (file)
@@ -3688,7 +3688,7 @@ _mesa_GetVertexArrayIntegervEXT(GLuint vaobj, GLenum pname, GLint *param)
       case GL_FOG_COORD_ARRAY_POINTER:
       case GL_SECONDARY_COLOR_ARRAY_POINTER:
          _get_vao_pointerv(pname, vao, &ptr, "glGetVertexArrayIntegervEXT");
-         *param = (int) ((uint64_t) ptr & 0xFFFFFFFF);
+         *param = (int) ((intptr_t) ptr & 0xFFFFFFFF);
          break;
 
       default: