projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mesa: remove INV_SQRTF() macro
[mesa.git]
/
src
/
mesa
/
tnl
/
t_rasterpos.c
diff --git
a/src/mesa/tnl/t_rasterpos.c
b/src/mesa/tnl/t_rasterpos.c
index 5945f64eb9ca0929f1079a32c22400809e12b9fa..9ecf947dfc848dde31e7a695966b9eef5f3ccfbd 100644
(file)
--- a/
src/mesa/tnl/t_rasterpos.c
+++ b/
src/mesa/tnl/t_rasterpos.c
@@
-272,7
+272,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 *
INV_SQRTF(m
);
+ mInv = 0.5F *
(1.0f / sqrtf(m)
);
else
mInv = 0.0F;