summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_vb_points.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-02-24 09:08:50 -0700
committerBrian Paul <[email protected]>2015-02-24 14:44:19 -0700
commitbd7f7aac56d3703f3d0fd55cd20f86f6c431b030 (patch)
treeb929fea534bf19ae7c2a692e3fcf9a893046a670 /src/mesa/tnl/t_vb_points.c
parent46ce78d4c659fcf9fb2b088424d4d16d13ab5d75 (diff)
mesa: replace FABSF with fabsf
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/tnl/t_vb_points.c')
-rw-r--r--src/mesa/tnl/t_vb_points.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vb_points.c b/src/mesa/tnl/t_vb_points.c
index 5f6c258570a..273db76829d 100644
--- a/src/mesa/tnl/t_vb_points.c
+++ b/src/mesa/tnl/t_vb_points.c
@@ -25,6 +25,7 @@
* Brian Paul
*/
+#include "c99_math.h"
#include "main/glheader.h"
#include "main/mtypes.h"
#include "main/dd.h"
@@ -62,7 +63,7 @@ run_point_stage(struct gl_context *ctx, struct tnl_pipeline_stage *stage)
GLuint i;
for (i = 0; i < VB->Count; i++) {
- const GLfloat dist = FABSF(*eyeCoord);
+ const GLfloat dist = fabsf(*eyeCoord);
const GLfloat q = p0 + dist * (p1 + dist * p2);
const GLfloat atten = (q != 0.0F) ? INV_SQRTF(q) : 1.0F;
size[i][0] = pointSize * atten; /* clamping done in rasterization */