1 Nov 2011 01:44
[PATCH 1/2] mesa: Set the "Integer" field of gl_client_array properly.
Paul Berry <stereotype441 <at> gmail.com>
2011-11-01 00:44:45 GMT
2011-11-01 00:44:45 GMT
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.
---
src/mesa/main/arrayobj.c | 1 +
src/mesa/main/varray.c | 1 +
src/mesa/vbo/vbo_split_copy.c | 1 +
3 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c
index 78f56ab..1283940 100644
--- a/src/mesa/main/arrayobj.c
+++ b/src/mesa/main/arrayobj.c
<at> <at> -208,6 +208,7 <at> <at> 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 */
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index 13b3405..f1a57c1 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
<at> <at> -212,6 +212,7 <at> <at> update_array(struct gl_context *ctx,
array->Stride = stride;
array->StrideB = stride ? stride : elementSize;
(Continue reading)
RSS Feed