diff options
author | Matt Turner <[email protected]> | 2012-07-20 10:06:35 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2012-07-21 08:23:38 -0700 |
commit | f58ba6ca9147137c7a2d31a1014235f7077b7752 (patch) | |
tree | 46f6d2c75436d591cfd66721fd00de8301373437 /src/mesa/tnl/t_rasterpos.c | |
parent | 948b1c541f32b12e8264b1eeb79ccbb696661f54 (diff) |
Remove _mesa_inv_sqrtf in favor of 1/SQRTF
Except for a couple of explicit uses, _mesa_inv_sqrtf was disabled since
its addition in 2003 (see f9b1e524).
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/tnl/t_rasterpos.c')
-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 50b5fcb4c63..a28ad0daf80 100644 --- a/src/mesa/tnl/t_rasterpos.c +++ b/src/mesa/tnl/t_rasterpos.c @@ -271,7 +271,7 @@ compute_texgen(struct gl_context *ctx, const GLfloat vObj[4], const GLfloat vEye rz = u[2] - normal[2] * two_nu; m = rx * rx + ry * ry + (rz + 1.0F) * (rz + 1.0F); if (m > 0.0F) - mInv = 0.5F * _mesa_inv_sqrtf(m); + mInv = 0.5F * INV_SQRTF(m); else mInv = 0.0F; |