glx: fix 64-bit datatype issue

This commit is contained in:
Guillaume Melquiond 2008-09-13 14:24:31 -06:00 committed by Brian Paul
parent 11a889db8f
commit 811d8b86eb

View 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;
}