summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_vb_points.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-01-27 17:01:10 -0700
committerBrian Paul <[email protected]>2010-01-27 17:04:30 -0700
commit28bd4a1d81c200d7eff4545de946dd943d853b08 (patch)
treeb83575c8b090614a8580bf31243770073f58de6b /src/mesa/tnl/t_vb_points.c
parent880411c72aee7c0ec81366bdf6ab8cf25bebb9d5 (diff)
tnl: fix double->float and int/uint conversion warnings
Reported by Karl Schultz.
Diffstat (limited to 'src/mesa/tnl/t_vb_points.c')
-rw-r--r--src/mesa/tnl/t_vb_points.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vb_points.c b/src/mesa/tnl/t_vb_points.c
index a52505b4b86..ab8ea60cf24 100644
--- a/src/mesa/tnl/t_vb_points.c
+++ b/src/mesa/tnl/t_vb_points.c
@@ -64,7 +64,7 @@ run_point_stage(GLcontext *ctx, struct tnl_pipeline_stage *stage)
for (i = 0; i < VB->Count; i++) {
const GLfloat dist = FABSF(*eyeCoord);
const GLfloat q = p0 + dist * (p1 + dist * p2);
- const GLfloat atten = (q != 0.0) ? SQRTF(1.0 / q) : 1.0;
+ const GLfloat atten = (q != 0.0F) ? SQRTF(1.0F / q) : 1.0F;
size[i][0] = pointSize * atten; /* clamping done in rasterization */
eyeCoord += eyeCoordStride;
}