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:
@@ -135,7 +135,8 @@ StateVars = [
|
||||
"ctx->Current.Attrib[VERT_ATTRIB_COLOR0][2]",
|
||||
"ctx->Current.Attrib[VERT_ATTRIB_COLOR0][3]" ],
|
||||
"FLUSH_CURRENT(ctx, 0);", None ),
|
||||
( "GL_CURRENT_INDEX", GLfloat, ["ctx->Current.Index"],
|
||||
( "GL_CURRENT_INDEX", GLfloat,
|
||||
[ "ctx->Current.Attrib[VERT_ATTRIB_COLOR_INDEX][0]" ],
|
||||
"FLUSH_CURRENT(ctx, 0);", None ),
|
||||
( "GL_CURRENT_NORMAL", GLfloatN,
|
||||
[ "ctx->Current.Attrib[VERT_ATTRIB_NORMAL][0]",
|
||||
|
Reference in New Issue
Block a user