summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/varray.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-05-06 13:00:35 -0600
committerBrian Paul <[email protected]>2009-05-07 10:12:33 -0600
commit0077c879b57f663c038becdde37b2f6671f59150 (patch)
tree617f3758a150b86b898a951ac68722e66e7949e3 /src/mesa/main/varray.c
parenta6c8e900af981e011e51268a2724e5ff4a3ff1eb (diff)
mesa: added _ElementSize field to gl_client_array
Will be handy for bounds checking later...
Diffstat (limited to 'src/mesa/main/varray.c')
-rw-r--r--src/mesa/main/varray.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index 106252e4609..629be600d4c 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
@@ -63,6 +63,8 @@ update_array(GLcontext *ctx, struct gl_client_array *array,
array->StrideB = stride ? stride : elementSize;
array->Normalized = normalized;
array->Ptr = (const GLubyte *) ptr;
+ array->_ElementSize = elementSize;
+
#if FEATURE_ARB_vertex_buffer_object
_mesa_reference_buffer_object(ctx, &array->BufferObj,
ctx->Array.ArrayBufferObj);