diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2001-05-03 22:13:32 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2001-05-03 22:13:32 +0000 |
commit | 1b3528fe635242f782fbcdde3ba74b5b7359a362 (patch) | |
tree | 180b475fc343edcb7fa18d5ff106bd9ce4f7d231 /src/mesa/swrast/s_aalinetemp.h | |
parent | 652a14a2153baf011a9347c6a8820e15ebf9aa2d (diff) |
interpolate fog valus as floats, not fixed - fixed the swrast fog problem
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 9ab1abb292..53a2b55ddf 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.7 2001/03/12 00:48:41 gareth Exp $ */ +/* $Id: s_aalinetemp.h,v 1.8 2001/05/03 22:13:32 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; - GLfixed fog; + GLfloat 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 = FloatToFixed( solve_plane(fx, fy, line->fPlane) ); + fog = solve_plane(fx, fy, line->fPlane); #else - fog = 0; + fog = 0.0; #endif #ifdef DO_RGBA red = solve_plane_chan(fx, fy, line->rPlane); |