diff options
Diffstat (limited to 'src/glx/x11/indirect_vertex_program.c')
-rw-r--r-- | src/glx/x11/indirect_vertex_program.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/glx/x11/indirect_vertex_program.c b/src/glx/x11/indirect_vertex_program.c index 8d7cec9dd2..0a1091eaef 100644 --- a/src/glx/x11/indirect_vertex_program.c +++ b/src/glx/x11/indirect_vertex_program.c @@ -23,7 +23,6 @@ * SOFTWARE. */ -#include "glheader.h" #include <inttypes.h> #include <GL/gl.h> #include "indirect.h" @@ -193,7 +192,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; } |