diff options
author | Brian Paul <[email protected]> | 2002-02-15 16:27:13 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-02-15 16:27:13 +0000 |
commit | c9ceef41fe89f5ba6e16ec51c1f9b7bfd8119c64 (patch) | |
tree | 6a3c760bd813a53b67cb266d983e9ef5147e9e0b /src | |
parent | a8f2efd1476878c3acad2a03f3164b5a691ea366 (diff) |
GL_ARB_window_pos fog fix
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/swrast/s_span.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c index adfd5b8e5e3..c46064991e7 100644 --- a/src/mesa/swrast/s_span.c +++ b/src/mesa/swrast/s_span.c @@ -1,4 +1,4 @@ -/* $Id: s_span.c,v 1.33 2002/02/14 00:39:53 brianp Exp $ */ +/* $Id: s_span.c,v 1.34 2002/02/15 16:27:13 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -74,10 +74,7 @@ _mesa_span_default_z( GLcontext *ctx, struct sw_span *span ) void _mesa_span_default_fog( GLcontext *ctx, struct sw_span *span ) { - if (ctx->Fog.FogCoordinateSource == GL_FOG_COORDINATE_EXT) - span->fog = _mesa_z_to_fogfactor(ctx, ctx->Current.RasterFogCoord); - else - span->fog = _mesa_z_to_fogfactor(ctx, ctx->Current.RasterDistance); + span->fog = _mesa_z_to_fogfactor(ctx, ctx->Current.RasterDistance); span->fogStep = 0; span->interpMask |= SPAN_FOG; } |