From: Ian Romanick Date: Mon, 31 Jan 2011 21:46:16 +0000 (-0800) Subject: mesa: Initial size for secondary color array is 3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=09e15ac76a6efb17148467671508f171658765d9;p=mesa.git mesa: Initial size for secondary color array is 3 See table 6.7 on page 347 of the OpenGL 3.0 specification. --- diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c index 9e9728c2c62..46010223370 100644 --- 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++) {