diff options
author | marha <marha@users.sourceforge.net> | 2011-04-10 18:43:19 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-04-10 18:43:19 +0000 |
commit | 2fb58f16eeec8ef3ec2a25e246477aab64e38a7d (patch) | |
tree | a4dbbe4f2c9a6524e99452ab43c972d5dbfa015f /mesalib/src/mesa/vbo/vbo_context.c | |
parent | de1c6801fc854692d39fb2f8d53bf54ab25a1287 (diff) | |
download | vcxsrv-2fb58f16eeec8ef3ec2a25e246477aab64e38a7d.tar.gz vcxsrv-2fb58f16eeec8ef3ec2a25e246477aab64e38a7d.tar.bz2 vcxsrv-2fb58f16eeec8ef3ec2a25e246477aab64e38a7d.zip |
mesa git update
Diffstat (limited to 'mesalib/src/mesa/vbo/vbo_context.c')
-rw-r--r-- | mesalib/src/mesa/vbo/vbo_context.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesalib/src/mesa/vbo/vbo_context.c b/mesalib/src/mesa/vbo/vbo_context.c index bbf422f74..5f03ce547 100644 --- a/mesalib/src/mesa/vbo/vbo_context.c +++ b/mesalib/src/mesa/vbo/vbo_context.c @@ -72,6 +72,7 @@ static void init_legacy_currval(struct gl_context *ctx) cl->Type = GL_FLOAT;
cl->Format = GL_RGBA;
cl->Ptr = (const void *)ctx->Current.Attrib[i];
+ cl->_ElementSize = cl->Size * sizeof(GLfloat);
_mesa_reference_buffer_object(ctx, &cl->BufferObj,
ctx->Shared->NullBufferObj);
}
@@ -98,6 +99,7 @@ static void init_generic_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);
}
@@ -143,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);
}
|