diff options
author | Brian Paul <brianp@vmware.com> | 2009-01-23 16:40:27 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-01-23 16:41:15 -0700 |
commit | ded949ed06e02ef26b1168b101daba04be78155e (patch) | |
tree | 7a0054b552b66561caa464a287d8dd9feb342f63 /src/mesa/vbo/vbo_context.c | |
parent | e57e39896049a045751201e912779872026fc741 (diff) | |
download | external_mesa3d-ded949ed06e02ef26b1168b101daba04be78155e.zip external_mesa3d-ded949ed06e02ef26b1168b101daba04be78155e.tar.gz external_mesa3d-ded949ed06e02ef26b1168b101daba04be78155e.tar.bz2 |
mesa: set the new array->Format field in VBO code
Should help to solve failed assertion in i965 driver (see bug 19708)
Diffstat (limited to 'src/mesa/vbo/vbo_context.c')
-rw-r--r-- | src/mesa/vbo/vbo_context.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo_context.c b/src/mesa/vbo/vbo_context.c index a73a46b..274d232 100644 --- a/src/mesa/vbo/vbo_context.c +++ b/src/mesa/vbo/vbo_context.c @@ -76,6 +76,7 @@ static void init_legacy_currval(GLcontext *ctx) cl->StrideB = 0; cl->Enabled = 1; cl->Type = GL_FLOAT; + cl->Format = GL_RGBA; cl->Ptr = (const void *)ctx->Current.Attrib[i]; cl->BufferObj = ctx->Array.NullBufferObj; } @@ -97,6 +98,7 @@ static void init_generic_currval(GLcontext *ctx) */ cl->Size = 1; cl->Type = GL_FLOAT; + cl->Format = GL_RGBA; cl->Ptr = (const void *)ctx->Current.Attrib[VERT_ATTRIB_GENERIC0 + i]; cl->Stride = 0; cl->StrideB = 0; @@ -141,6 +143,7 @@ static void init_mat_currval(GLcontext *ctx) cl->Ptr = (const void *)ctx->Light.Material.Attrib[i]; cl->Type = GL_FLOAT; + cl->Format = GL_RGBA; cl->Stride = 0; cl->StrideB = 0; cl->Enabled = 1; |