diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2001-09-14 21:36:43 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2001-09-14 21:36:43 +0000 |
commit | 7c276329e815c84ea2403bb08c44ff60179c0cd6 (patch) | |
tree | 9c4327b36e71c5c265fba1f1c8cbb9ae2497142a /src/mesa/swrast_setup/ss_tritmp.h | |
parent | edf8c06270a0e62f33e3f45e1f0307acfeff3b5d (diff) | |
download | external_mesa3d-7c276329e815c84ea2403bb08c44ff60179c0cd6.zip external_mesa3d-7c276329e815c84ea2403bb08c44ff60179c0cd6.tar.gz external_mesa3d-7c276329e815c84ea2403bb08c44ff60179c0cd6.tar.bz2 |
more warning fixes (Karl Schultz)
Diffstat (limited to 'src/mesa/swrast_setup/ss_tritmp.h')
-rw-r--r-- | src/mesa/swrast_setup/ss_tritmp.h | 8 |
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 aeb407d..61d1f80 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; |