summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorGuillaume Melquiond <[email protected]>2008-09-13 14:24:31 -0600
committerBrian Paul <[email protected]>2008-09-13 14:24:31 -0600
commit811d8b86eb43b140de86e2674d50b19223d74c5e (patch)
treea57a2a61820a80594fb840f01b32e9d397946252 /src/glx
parent11a889db8f182fb1d11c998e5156deac8ca9f91d (diff)
glx: fix 64-bit datatype issue
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/x11/indirect_vertex_program.c8
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 8d7cec9dd21..4f1485a850c 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;
}