diff options
author | Keith Whitwell <[email protected]> | 2001-02-20 18:28:52 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2001-02-20 18:28:52 +0000 |
commit | 4eebc90a174722422daea6352d4e980bc81b4bb2 (patch) | |
tree | fd3f4bedaaf568c17d99cd9e028622ffd505a329 /src/mesa/tnl/t_array_api.c | |
parent | 8bbc71f2eb6a3d7acce6bc1a66a4caea54d3fc8d (diff) |
Added GLvector4chan type, removed lots of CHAN_TYPE ifdefs.
Diffstat (limited to 'src/mesa/tnl/t_array_api.c')
-rw-r--r-- | src/mesa/tnl/t_array_api.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/mesa/tnl/t_array_api.c b/src/mesa/tnl/t_array_api.c index 900467c98d0..9a90a2e6965 100644 --- a/src/mesa/tnl/t_array_api.c +++ b/src/mesa/tnl/t_array_api.c @@ -1,4 +1,4 @@ -/* $Id: t_array_api.c,v 1.6 2001/02/15 01:33:52 keithw Exp $ */ +/* $Id: t_array_api.c,v 1.7 2001/02/20 18:28:52 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -354,16 +354,8 @@ void _tnl_array_init( GLcontext *ctx ) */ gl_vector4f_init( &tmp->Obj, 0, 0 ); gl_vector3f_init( &tmp->Normal, 0, 0 ); -#if CHAN_TYPE == GL_UNSIGNED_BYTE - gl_vector4ub_init( &tmp->Color, 0, 0 ); - gl_vector4ub_init( &tmp->SecondaryColor, 0, 0 ); -#elif CHAN_TYPE == GL_UNSIGNED_SHORT - gl_vector4us_init( &tmp->Color, 0, 0 ); - gl_vector4us_init( &tmp->SecondaryColor, 0, 0 ); -#elif CHAN_TYPE == GL_FLOAT - gl_vector4f_init( &tmp->Color, 0, 0 ); - gl_vector4f_init( &tmp->SecondaryColor, 0, 0 ); -#endif + gl_vector4chan_init( &tmp->Color, 0, 0 ); + gl_vector4chan_init( &tmp->SecondaryColor, 0, 0 ); gl_vector1f_init( &tmp->FogCoord, 0, 0 ); gl_vector1ui_init( &tmp->Index, 0, 0 ); gl_vector1ub_init( &tmp->EdgeFlag, 0, 0 ); |