Inline get_size as an interim measure to get rid of function call overhead.

This commit is contained in:
Michel Dänzer 2004-03-01 13:02:29 +00:00
parent cac8d425a8
commit dbb0d2751f
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@
#include "t_save_api.h"
#include "t_vtx_api.h"
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;

View file

@ -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;