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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user