Skip to content
Snippets Groups Projects
Commit f1582dbe authored by Keith Whitwell's avatar Keith Whitwell
Browse files

use VERT_ATTRIB constants in definitions of _tnl_VertexAttrib*

parent 4fc77f88
No related branches found
No related tags found
No related merge requests found
......@@ -640,7 +640,7 @@ static void _tnl_MultiTexCoord4fv( GLenum target, const GLfloat *v )
static void _tnl_VertexAttrib1fNV( GLuint index, GLfloat x )
{
if (index >= _TNL_ATTRIB_POS && index < _TNL_ATTRIB_MAX)
if (index >= VERT_ATTRIB_POS && index < VERT_ATTRIB_MAX)
DISPATCH_ATTR1F( index, x );
else
enum_error();
......@@ -648,7 +648,7 @@ static void _tnl_VertexAttrib1fNV( GLuint index, GLfloat x )
static void _tnl_VertexAttrib1fvNV( GLuint index, const GLfloat *v )
{
if (index >= _TNL_ATTRIB_POS && index < _TNL_ATTRIB_MAX)
if (index >= VERT_ATTRIB_POS && index < VERT_ATTRIB_MAX)
DISPATCH_ATTR1FV( index, v );
else
enum_error();
......@@ -656,7 +656,7 @@ static void _tnl_VertexAttrib1fvNV( GLuint index, const GLfloat *v )
static void _tnl_VertexAttrib2fNV( GLuint index, GLfloat x, GLfloat y )
{
if (index >= _TNL_ATTRIB_POS && index < _TNL_ATTRIB_MAX)
if (index >= VERT_ATTRIB_POS && index < VERT_ATTRIB_MAX)
DISPATCH_ATTR2F( index, x, y );
else
enum_error();
......@@ -664,7 +664,7 @@ static void _tnl_VertexAttrib2fNV( GLuint index, GLfloat x, GLfloat y )
static void _tnl_VertexAttrib2fvNV( GLuint index, const GLfloat *v )
{
if (index >= _TNL_ATTRIB_POS && index < _TNL_ATTRIB_MAX)
if (index >= VERT_ATTRIB_POS && index < VERT_ATTRIB_MAX)
DISPATCH_ATTR2FV( index, v );
else
enum_error();
......@@ -673,7 +673,7 @@ static void _tnl_VertexAttrib2fvNV( GLuint index, const GLfloat *v )
static void _tnl_VertexAttrib3fNV( GLuint index, GLfloat x, GLfloat y,
GLfloat z )
{
if (index >= _TNL_ATTRIB_POS && index < _TNL_ATTRIB_MAX)
if (index >= VERT_ATTRIB_POS && index < VERT_ATTRIB_MAX)
DISPATCH_ATTR3F( index, x, y, z );
else
enum_error();
......@@ -681,7 +681,7 @@ static void _tnl_VertexAttrib3fNV( GLuint index, GLfloat x, GLfloat y,
static void _tnl_VertexAttrib3fvNV( GLuint index, const GLfloat *v )
{
if (index >= _TNL_ATTRIB_POS && index < _TNL_ATTRIB_MAX)
if (index >= VERT_ATTRIB_POS && index < VERT_ATTRIB_MAX)
DISPATCH_ATTR3FV( index, v );
else
enum_error();
......@@ -690,7 +690,7 @@ static void _tnl_VertexAttrib3fvNV( GLuint index, const GLfloat *v )
static void _tnl_VertexAttrib4fNV( GLuint index, GLfloat x, GLfloat y,
GLfloat z, GLfloat w )
{
if (index >= _TNL_ATTRIB_POS && index < _TNL_ATTRIB_MAX)
if (index >= VERT_ATTRIB_POS && index < VERT_ATTRIB_MAX)
DISPATCH_ATTR4F( index, x, y, z, w );
else
enum_error();
......@@ -698,7 +698,7 @@ static void _tnl_VertexAttrib4fNV( GLuint index, GLfloat x, GLfloat y,
static void _tnl_VertexAttrib4fvNV( GLuint index, const GLfloat *v )
{
if (index >= _TNL_ATTRIB_POS && index < _TNL_ATTRIB_MAX)
if (index >= VERT_ATTRIB_POS && index < VERT_ATTRIB_MAX)
DISPATCH_ATTR4FV( index, v );
else
enum_error();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment