From 8f84c237b360be69f9b6ac51465c729b3ada196a Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Mon, 31 Oct 2011 17:29:17 -0700 Subject: mesa: Set the "Integer" field of gl_client_array properly. This patch ensures that gl_client_array::Integer is properly set to GL_TRUE for vertex attributes specified using glVertexAttribIPointer, and to GL_FALSE for vertex attributes specified using glVertexAttribPointer, so that the vertex attributes can be interpreted properly by driver back-ends. Reviewed-by: Kenneth Graunke Reviewed-by: Eric Anholt --- src/mesa/main/arrayobj.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/main/arrayobj.c') diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c index 78f56ab00b7..1283940f7fd 100644 --- a/src/mesa/main/arrayobj.c +++ b/src/mesa/main/arrayobj.c @@ -208,6 +208,7 @@ init_array(struct gl_context *ctx, array->Ptr = NULL; array->Enabled = GL_FALSE; array->Normalized = GL_FALSE; + array->Integer = GL_FALSE; array->_ElementSize = size * _mesa_sizeof_type(type); #if FEATURE_ARB_vertex_buffer_object /* Vertex array buffers */ -- cgit v1.2.3