summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_vtx_api.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2003-11-25 15:58:22 +0000
committerBrian Paul <[email protected]>2003-11-25 15:58:22 +0000
commitb65bc4f87b356cf6228151cd2f341432e80dc6b8 (patch)
tree208918293c838bb8c86c59cb266b621def3ac2d7 /src/mesa/tnl/t_vtx_api.c
parente749be22b03312c3927964c85d589868e3292977 (diff)
Remove unnecessary usage of __FUNCTION__.
#define MESA_FUNCTION to __FUNCTION__ if MESA_DEBUG is defined.
Diffstat (limited to 'src/mesa/tnl/t_vtx_api.c')
-rw-r--r--src/mesa/tnl/t_vtx_api.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/tnl/t_vtx_api.c b/src/mesa/tnl/t_vtx_api.c
index 21ec1c9a7b2..d834a1407a2 100644
--- a/src/mesa/tnl/t_vtx_api.c
+++ b/src/mesa/tnl/t_vtx_api.c
@@ -495,7 +495,7 @@ do { \
static void enum_error( void )
{
GET_CURRENT_CONTEXT( ctx );
- _mesa_error( ctx, GL_INVALID_ENUM, __FUNCTION__ );
+ _mesa_error( ctx, GL_INVALID_ENUM, "glVertexAttrib" );
}
static void _tnl_Vertex2f( GLfloat x, GLfloat y )
@@ -790,7 +790,7 @@ static void _tnl_Materialfv( GLenum face, GLenum pname,
break;
default:
- _mesa_error( ctx, GL_INVALID_ENUM, __FUNCTION__);
+ _mesa_error( ctx, GL_INVALID_ENUM, "glMaterialfv" );
return;
}
@@ -818,7 +818,7 @@ static void _tnl_Materialfv( GLenum face, GLenum pname,
MAT( _TNL_ATTRIB_MAT_FRONT_DIFFUSE, 4, face, params );
break;
default:
- _mesa_error( ctx, GL_INVALID_ENUM, __FUNCTION__ );
+ _mesa_error( ctx, GL_INVALID_ENUM, "glMaterialfv" );
return;
}
}
@@ -990,7 +990,7 @@ static void _tnl_Begin( GLenum mode )
ctx->Driver.CurrentExecPrimitive = mode;
}
else
- _mesa_error( ctx, GL_INVALID_OPERATION, __FUNCTION__ );
+ _mesa_error( ctx, GL_INVALID_OPERATION, "glBegin" );
}
@@ -1023,7 +1023,7 @@ static void _tnl_End( void )
}
else
- _mesa_error( ctx, GL_INVALID_OPERATION, __FUNCTION__ );
+ _mesa_error( ctx, GL_INVALID_OPERATION, "glEnd" );
}