summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2003-04-07 23:07:50 +0000
committerBrian Paul <[email protected]>2003-04-07 23:07:50 +0000
commit071a4ddd92229b102b0b67410303505681114cd7 (patch)
tree70483e895df7726bca6135d06210b05e03101052
parent4cef881e1f7691b4d0b3704f868713b22fb456ae (diff)
initialize attribute vectors to 4 components
-rw-r--r--src/mesa/tnl/t_vb_program.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vb_program.c b/src/mesa/tnl/t_vb_program.c
index 9b1cbf76399..4b1d2ff00e2 100644
--- a/src/mesa/tnl/t_vb_program.c
+++ b/src/mesa/tnl/t_vb_program.c
@@ -333,8 +333,10 @@ static GLboolean run_init_vp( GLcontext *ctx,
return GL_FALSE;
/* Allocate arrays of vertex output values */
- for (i = 0; i < 15; i++)
+ for (i = 0; i < 15; i++) {
_mesa_vector4f_alloc( &store->attribs[i], 0, size, 32 );
+ store->attribs[i].size = 4;
+ }
/* Make the color0[] and color1[] arrays point into the attribs[] arrays */
init_color_array( &store->color0[0], &store->attribs[VERT_RESULT_COL0] );