diff options
author | Brian <brian@yutani.localnet.net> | 2007-01-09 17:46:45 -0700 |
---|---|---|
committer | Brian <brian@yutani.localnet.net> | 2007-01-09 17:46:45 -0700 |
commit | e8673143ea3d0edf1be7ba8e0723ddba61d8f3f8 (patch) | |
tree | 76dfa9234e2ee12a5e584908837fa96f8cb7aa6a | |
parent | 048412473bda3db3e58b9840de5ef82d2ecce3c0 (diff) |
add code for generic attributes 16..31
-rw-r--r-- | src/mesa/tnl/t_save_api.c | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_save_api.c b/src/mesa/tnl/t_save_api.c index dbbd095fe4..616b599218 100644 --- a/src/mesa/tnl/t_save_api.c +++ b/src/mesa/tnl/t_save_api.c @@ -677,12 +677,30 @@ ATTRS( 13 ) ATTRS( 14 ) ATTRS( 15 ) +ATTRS( 16 ) +ATTRS( 17 ) +ATTRS( 18 ) +ATTRS( 19 ) +ATTRS( 20 ) +ATTRS( 21 ) +ATTRS( 22 ) +ATTRS( 23 ) +ATTRS( 24 ) +ATTRS( 25 ) +ATTRS( 26 ) +ATTRS( 27 ) +ATTRS( 28 ) +ATTRS( 29 ) +ATTRS( 30 ) +ATTRS( 31 ) + static void _save_reset_vertex( GLcontext *ctx ) { TNLcontext *tnl = TNL_CONTEXT(ctx); GLuint i; + /* conventional attributes */ save_init_0( tnl ); save_init_1( tnl ); save_init_2( tnl ); @@ -699,6 +717,24 @@ static void _save_reset_vertex( GLcontext *ctx ) save_init_13( tnl ); save_init_14( tnl ); save_init_15( tnl ); + + /* generic attributes */ + save_init_16( tnl ); + save_init_17( tnl ); + save_init_18( tnl ); + save_init_19( tnl ); + save_init_20( tnl ); + save_init_21( tnl ); + save_init_22( tnl ); + save_init_23( tnl ); + save_init_24( tnl ); + save_init_25( tnl ); + save_init_26( tnl ); + save_init_27( tnl ); + save_init_28( tnl ); + save_init_29( tnl ); + save_init_30( tnl ); + save_init_31( tnl ); for (i = 0 ; i < _TNL_ATTRIB_MAX ; i++) tnl->save.attrsz[i] = 0; @@ -1024,7 +1060,7 @@ static void GLAPIENTRY _save_VertexAttrib2fARB( GLuint index, GLfloat x, GLfloat y ) { if (index < MAX_VERTEX_ATTRIBS) - DISPATCH_ATTR2F( index, x, y ); + DISPATCH_ATTR2F( VERT_ATTRIB_GENERIC0 + index, x, y ); else enum_error(); } |