diff options
author | José Fonseca <[email protected]> | 2011-04-07 13:35:25 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2011-04-07 13:35:25 +0100 |
commit | 584d1e23096ed103ae62c13685a435b220b482f2 (patch) | |
tree | 3bd2c81cec81f049286635e6129e2e84e7e967d4 /src/mesa/vbo/vbo_exec_api.c | |
parent | 0c501bacef3738b55986292abca149dcfe76d72d (diff) |
mesa: Update _ElementSize in a few more places.
Diffstat (limited to 'src/mesa/vbo/vbo_exec_api.c')
-rw-r--r-- | src/mesa/vbo/vbo_exec_api.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo_exec_api.c b/src/mesa/vbo/vbo_exec_api.c index fcd544de763..3c7c439b64c 100644 --- a/src/mesa/vbo/vbo_exec_api.c +++ b/src/mesa/vbo/vbo_exec_api.c @@ -168,6 +168,8 @@ static void vbo_exec_copy_to_current( struct vbo_exec_context *exec ) * directly. */ vbo->currval[i].Size = exec->vtx.attrsz[i]; + assert(vbo->currval[i].Type == GL_FLOAT); + vbo->currval[i]._ElementSize = vbo->currval[i].Size * sizeof(GLfloat); /* This triggers rather too much recalculation of Mesa state * that doesn't get used (eg light positions). |