diff options
author | Brian Paul <[email protected]> | 2001-03-07 05:06:11 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-03-07 05:06:11 +0000 |
commit | b51b0a847d7e7daaea69f77ab569086ef81c24a2 (patch) | |
tree | 165cf8b023e6c7b1f66dacc46a6c37110ef27ea7 /src/mesa/swrast/s_aalinetemp.h | |
parent | 249aebdd357d20f6326137c967c6b3923bef6c05 (diff) |
fixed a bunch of g++ warnings/errors. Compiling with g++ can help find lots of potential problems
Diffstat (limited to 'src/mesa/swrast/s_aalinetemp.h')
-rw-r--r-- | src/mesa/swrast/s_aalinetemp.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/swrast/s_aalinetemp.h b/src/mesa/swrast/s_aalinetemp.h index a98fbfd246c..91d588eee0a 100644 --- a/src/mesa/swrast/s_aalinetemp.h +++ b/src/mesa/swrast/s_aalinetemp.h @@ -1,4 +1,4 @@ -/* $Id: s_aalinetemp.h,v 1.5 2001/01/29 23:38:41 brianp Exp $ */ +/* $Id: s_aalinetemp.h,v 1.6 2001/03/07 05:06:12 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -41,7 +41,7 @@ NAME(plot)(GLcontext *ctx, const struct LineInfo *line, const GLfloat fy = (GLfloat) iy; const GLfloat coverage = compute_coveragef(line, ix, iy); GLdepth z; - GLfloat fog; + GLfixed fog; GLchan red, green, blue, alpha; GLint frac, indx, index; GLchan specRed, specGreen, specBlue; @@ -60,9 +60,9 @@ NAME(plot)(GLcontext *ctx, const struct LineInfo *line, z = 0.0; #endif #ifdef DO_FOG - fog = solve_plane(fx, fy, line->fPlane); + fog = FloatToFixed( solve_plane(fx, fy, line->fPlane) ); #else - fog = 0.0; + fog = 0; #endif #ifdef DO_RGBA red = solve_plane_chan(fx, fy, line->rPlane); |