OSDN Git Service

glx: fix 64-bit datatype issue
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>
Sat, 13 Sep 2008 20:24:31 +0000 (14:24 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 13 Sep 2008 20:24:31 +0000 (14:24 -0600)
src/glx/x11/indirect_vertex_program.c

index 8d7cec9..4f1485a 100644 (file)
@@ -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;
            }