projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fb722c
)
mesa: Initial size for secondary color array is 3
author
Ian Romanick
<ian.d.romanick@intel.com>
Mon, 31 Jan 2011 21:46:16 +0000
(13:46 -0800)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Mon, 31 Jan 2011 23:32:55 +0000
(15:32 -0800)
See table 6.7 on page 347 of the OpenGL 3.0 specification.
src/mesa/main/arrayobj.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/arrayobj.c
b/src/mesa/main/arrayobj.c
index 9e9728c2c62480131622206a18e14bc53a6719d3..46010223370398ab9cc9f33e25190b4a9f5d4406 100644
(file)
--- a/
src/mesa/main/arrayobj.c
+++ b/
src/mesa/main/arrayobj.c
@@
-234,7
+234,7
@@
_mesa_initialize_array_object( struct gl_context *ctx,
init_array(ctx, &obj->Weight, 1, GL_FLOAT);
init_array(ctx, &obj->Normal, 3, GL_FLOAT);
init_array(ctx, &obj->Color, 4, GL_FLOAT);
- init_array(ctx, &obj->SecondaryColor,
4
, GL_FLOAT);
+ init_array(ctx, &obj->SecondaryColor,
3
, GL_FLOAT);
init_array(ctx, &obj->FogCoord, 1, GL_FLOAT);
init_array(ctx, &obj->Index, 1, GL_FLOAT);
for (i = 0; i < Elements(obj->TexCoord); i++) {