diff options
author | Brian Paul <brianp@vmware.com> | 2012-09-03 12:19:15 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2012-09-03 18:07:41 -0600 |
commit | 56ccdf7e30f5bc1bc6b71d49bad2a9049ae170c4 (patch) | |
tree | 1d890a1708b7262c080444a8cd57948ea49a9edd /src/mesa/tnl | |
parent | f44bda17f515c411071ca8744ebd96039d9c583b (diff) | |
download | external_mesa3d-56ccdf7e30f5bc1bc6b71d49bad2a9049ae170c4.zip external_mesa3d-56ccdf7e30f5bc1bc6b71d49bad2a9049ae170c4.tar.gz external_mesa3d-56ccdf7e30f5bc1bc6b71d49bad2a9049ae170c4.tar.bz2 |
mesa: remove SQRTF, use sqrtf. Convert INV_SQRT() to inline function.
We were already defining sqrtf where we don't have the C99 version.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r-- | src/mesa/tnl/t_rasterpos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_rasterpos.c b/src/mesa/tnl/t_rasterpos.c index a28ad0d..1673b81 100644 --- a/src/mesa/tnl/t_rasterpos.c +++ b/src/mesa/tnl/t_rasterpos.c @@ -429,7 +429,7 @@ _tnl_RasterPos(struct gl_context *ctx, const GLfloat vObj[4]) ctx->Current.RasterDistance = ctx->Current.Attrib[VERT_ATTRIB_FOG][0]; else ctx->Current.RasterDistance = - SQRTF( eye[0]*eye[0] + eye[1]*eye[1] + eye[2]*eye[2] ); + sqrtf( eye[0]*eye[0] + eye[1]*eye[1] + eye[2]*eye[2] ); /* compute transformed normal vector (for lighting or texgen) */ if (ctx->_NeedEyeCoords) { |