diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2008-09-13 14:24:31 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-09-13 14:26:25 -0600 |
commit | 253784d45e8417a783a71b4af6f39cc9a21b523e (patch) | |
tree | 437b2ac934bdaa90941dae930bffe553dd8ae5ed | |
parent | 463d19d477058ba176fa7397f3cf473e7688bd3d (diff) |
glx: fix 64-bit datatype issue
-rw-r--r-- | src/glx/x11/indirect_vertex_program.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/glx/x11/indirect_vertex_program.c b/src/glx/x11/indirect_vertex_program.c index 8d7cec9dd2..4f1485a850 100644 --- a/src/glx/x11/indirect_vertex_program.c +++ b/src/glx/x11/indirect_vertex_program.c @@ -193,7 +193,13 @@ void __indirect_glGetVertexAttribivARB( GLuint index, GLenum pname, get_vertex_attrib( gc, 1303, index, pname, (xReply *) & reply ); if ( reply.size != 0 ) { - if ( ! get_attrib_array_data( state, index, pname, params ) ) { + GLintptr data; + + + if ( get_attrib_array_data( state, index, pname, & data ) ) { + *params = (GLint) data; + } + else { if (reply.size == 1) { *params = (GLint) reply.pad3; } |