aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo_context.c
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-04-07 13:35:25 +0100
committerJosé Fonseca <[email protected]>2011-04-07 13:35:25 +0100
commit584d1e23096ed103ae62c13685a435b220b482f2 (patch)
tree3bd2c81cec81f049286635e6129e2e84e7e967d4 /src/mesa/vbo/vbo_context.c
parent0c501bacef3738b55986292abca149dcfe76d72d (diff)
mesa: Update _ElementSize in a few more places.
Diffstat (limited to 'src/mesa/vbo/vbo_context.c')
-rw-r--r--src/mesa/vbo/vbo_context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo_context.c b/src/mesa/vbo/vbo_context.c
index ae17ae29a0c..9de770d0bcf 100644
--- a/src/mesa/vbo/vbo_context.c
+++ b/src/mesa/vbo/vbo_context.c
@@ -145,6 +145,7 @@ static void init_mat_currval(struct gl_context *ctx)
cl->Stride = 0;
cl->StrideB = 0;
cl->Enabled = 1;
+ cl->_ElementSize = cl->Size * sizeof(GLfloat);
_mesa_reference_buffer_object(ctx, &cl->BufferObj,
ctx->Shared->NullBufferObj);
}