From dbb0d2751f98da7630bfbfa86ca5f76d3dddbf72 Mon Sep 17 00:00:00 2001 From: Michel Dänzer Date: Mon, 1 Mar 2004 13:02:29 +0000 Subject: Inline get_size as an interim measure to get rid of function call overhead. --- src/mesa/tnl/t_vtx_exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/tnl/t_vtx_exec.c') diff --git a/src/mesa/tnl/t_vtx_exec.c b/src/mesa/tnl/t_vtx_exec.c index 4a36ed917f..6925850f06 100644 --- a/src/mesa/tnl/t_vtx_exec.c +++ b/src/mesa/tnl/t_vtx_exec.c @@ -93,7 +93,7 @@ GLboolean *_tnl_import_current_edgeflag( GLcontext *ctx, return ef; } -static GLint get_size( const GLfloat *f ) +static INLINE GLint get_size( const GLfloat *f ) { if (f[3] != 1.0) return 4; if (f[2] != 0.0) return 3; -- cgit v1.2.3