From 0fc1cd5e9125dfe86b9dc31ec8084ee1f28aef47 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 8 Sep 2009 17:57:43 +0800 Subject: mesa/tnl: Respect mfeatures.h. _tnl_RasterPos should be disabled with FEATURE_rastpos. --- src/mesa/tnl/t_rasterpos.c | 5 +++++ src/mesa/tnl/tnl.h | 5 +---- src/mesa/tnl/tnl_features.h | 13 +++++++++++++ 3 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 src/mesa/tnl/tnl_features.h (limited to 'src/mesa/tnl') diff --git a/src/mesa/tnl/t_rasterpos.c b/src/mesa/tnl/t_rasterpos.c index 99b6787455..a8cf86060f 100644 --- a/src/mesa/tnl/t_rasterpos.c +++ b/src/mesa/tnl/t_rasterpos.c @@ -37,6 +37,8 @@ #include "tnl/tnl.h" +#if FEATURE_rastpos + /** * Clip a point against the view volume. @@ -508,3 +510,6 @@ _tnl_RasterPos(GLcontext *ctx, const GLfloat vObj[4]) _mesa_update_hitflag( ctx, ctx->Current.RasterPos[2] ); } } + + +#endif /* FEATURE_rastpos */ diff --git a/src/mesa/tnl/tnl.h b/src/mesa/tnl/tnl.h index 9c66d3b019..4736dcff9e 100644 --- a/src/mesa/tnl/tnl.h +++ b/src/mesa/tnl/tnl.h @@ -29,7 +29,7 @@ #define _TNL_H #include "main/mtypes.h" - +#include "tnl_features.h" /* These are the public-access functions exported from tnl. (A few @@ -94,7 +94,4 @@ _tnl_vbo_draw_prims( GLcontext *ctx, extern void _mesa_load_tracked_matrices(GLcontext *ctx); -extern void -_tnl_RasterPos(GLcontext *ctx, const GLfloat vObj[4]); - #endif diff --git a/src/mesa/tnl/tnl_features.h b/src/mesa/tnl/tnl_features.h new file mode 100644 index 0000000000..0c86dd09a4 --- /dev/null +++ b/src/mesa/tnl/tnl_features.h @@ -0,0 +1,13 @@ +#ifndef _TNL_FEATURES_H +#define _TNL_FEATURES_H + +#include "main/mtypes.h" + +#if FEATURE_rastpos + +extern void +_tnl_RasterPos(GLcontext *ctx, const GLfloat vObj[4]); + +#endif + +#endif /* _TNL_FEATURES_H */ -- cgit v1.2.3