summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/light.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2012-09-03 12:19:15 -0600
committerBrian Paul <brianp@vmware.com>2012-09-03 18:07:41 -0600
commit56ccdf7e30f5bc1bc6b71d49bad2a9049ae170c4 (patch)
tree1d890a1708b7262c080444a8cd57948ea49a9edd /src/mesa/main/light.c
parentf44bda17f515c411071ca8744ebd96039d9c583b (diff)
downloadexternal_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/main/light.c')
-rw-r--r--src/mesa/main/light.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c
index cfb53dc..042ed1c 100644
--- a/src/mesa/main/light.c
+++ b/src/mesa/main/light.c
@@ -1038,7 +1038,7 @@ update_modelview_scale( struct gl_context *ctx )
if (ctx->_NeedEyeCoords)
ctx->_ModelViewInvScale = (GLfloat) INV_SQRTF(f);
else
- ctx->_ModelViewInvScale = (GLfloat) SQRTF(f);
+ ctx->_ModelViewInvScale = (GLfloat) sqrtf(f);
}
}