Put color index attribute into the 6th attribute slot.

Update a lot of loops, conditionals to use the _TNL_FIRST/LAST_* values
instead of specific vertex attributes.
Remove the EdgeFlagv function from the GLvertexformat struct.
This commit is contained in:
Brian Paul
2006-04-25 00:53:25 +00:00
parent 5bdc6fdebc
commit 94b30dc390
27 changed files with 134 additions and 174 deletions

View File

@@ -81,7 +81,7 @@ static GLuint check_input_changes( GLcontext *ctx )
TNLcontext *tnl = TNL_CONTEXT(ctx);
GLuint i;
for (i = 0; i < _TNL_ATTRIB_EDGEFLAG; i++) {
for (i = 0; i <= _TNL_LAST_MAT; i++) {
if (tnl->vb.AttribPtr[i]->size != tnl->pipeline.last_attrib_size[i] ||
tnl->vb.AttribPtr[i]->stride != tnl->pipeline.last_attrib_stride[i]) {
tnl->pipeline.last_attrib_size[i] = tnl->vb.AttribPtr[i]->size;