summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast_setup/ss_tritmp.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-09-14 21:36:43 +0000
committerBrian Paul <[email protected]>2001-09-14 21:36:43 +0000
commit7c276329e815c84ea2403bb08c44ff60179c0cd6 (patch)
tree9c4327b36e71c5c265fba1f1c8cbb9ae2497142a /src/mesa/swrast_setup/ss_tritmp.h
parentedf8c06270a0e62f33e3f45e1f0307acfeff3b5d (diff)
more warning fixes (Karl Schultz)
Diffstat (limited to 'src/mesa/swrast_setup/ss_tritmp.h')
-rw-r--r--src/mesa/swrast_setup/ss_tritmp.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/swrast_setup/ss_tritmp.h b/src/mesa/swrast_setup/ss_tritmp.h
index aeb407da494..61d1f8008a4 100644
--- a/src/mesa/swrast_setup/ss_tritmp.h
+++ b/src/mesa/swrast_setup/ss_tritmp.h
@@ -1,4 +1,4 @@
-/* $Id: ss_tritmp.h,v 1.14 2001/07/17 19:39:32 keithw Exp $ */
+/* $Id: ss_tritmp.h,v 1.15 2001/09/14 21:36:43 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -92,11 +92,11 @@ static void TAG(triangle)(GLcontext *ctx, GLuint e0, GLuint e1, GLuint e2 )
GLfloat fz = z[1] - z[2];
GLfloat a = ey*fz - ez*fy;
GLfloat b = ez*fx - ex*fz;
- GLfloat ic = 1.0 / cc;
+ GLfloat ic = 1.0F / cc;
GLfloat ac = a * ic;
GLfloat bc = b * ic;
- if (ac < 0.0f) ac = -ac;
- if (bc < 0.0f) bc = -bc;
+ if (ac < 0.0F) ac = -ac;
+ if (bc < 0.0F) bc = -bc;
offset += MAX2(ac, bc) * ctx->Polygon.OffsetFactor;
}
offset *= ctx->MRD;