summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/light.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-09-03 12:19:15 -0600
committerBrian Paul <[email protected]>2012-09-03 18:07:41 -0600
commit56ccdf7e30f5bc1bc6b71d49bad2a9049ae170c4 (patch)
tree1d890a1708b7262c080444a8cd57948ea49a9edd /src/mesa/main/light.c
parentf44bda17f515c411071ca8744ebd96039d9c583b (diff)
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 <[email protected]> Reviewed-by: Matt Turner <[email protected]>
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 cfb53dc061c..042ed1cb858 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);
}
}