diff options
author | Brian Paul <[email protected]> | 2002-02-14 00:39:53 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-02-14 00:39:53 +0000 |
commit | 95e2c72fd52d87163eb543555345f115f050f3aa (patch) | |
tree | 958731e2786e36a8e621ca7a9ef5b6e87c30a4ca | |
parent | d4e02d60260cd93446d42fcf30b24430b396478e (diff) |
minor clean-up
-rw-r--r-- | src/mesa/swrast/s_span.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c index 6f76fd8b591..adfd5b8e5e3 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.32 2002/02/06 03:22:47 brianp Exp $ */ +/* $Id: s_span.c,v 1.33 2002/02/14 00:39:53 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -936,7 +936,6 @@ _mesa_write_rgba_span( GLcontext *ctx, struct sw_span *span, } else { /* normal: write to exactly one buffer */ -#if 1 if (ctx->Color.ColorLogicOpEnabled) { _mesa_logicop_rgba_span(ctx, span, span->color.rgba); monoColor = GL_FALSE; @@ -945,7 +944,7 @@ _mesa_write_rgba_span( GLcontext *ctx, struct sw_span *span, _mesa_blend_span(ctx, span, span->color.rgba); monoColor = GL_FALSE; } -#endif + /* Color component masking */ if (colorMask != 0xffffffff) { _mesa_mask_rgba_span(ctx, span, span->color.rgba); @@ -1163,11 +1162,13 @@ _mesa_write_texture_span( GLcontext *ctx, struct sw_span *span, /* Fog */ /* XXX try to simplify the fog code! */ if (ctx->Fog.Enabled) { - if ((span->arrayMask & SPAN_FOG) && !swrast->_PreferPixelFog) + if ((span->arrayMask & SPAN_FOG) && !swrast->_PreferPixelFog) { _mesa_fog_rgba_pixels_with_array( ctx, span, span->fogArray, span->color.rgba); - else if ((span->interpMask & SPAN_FOG) && !swrast->_PreferPixelFog) + } + else if ((span->interpMask & SPAN_FOG) && !swrast->_PreferPixelFog) { _mesa_fog_rgba_pixels( ctx, span, span->color.rgba ); + } else { if ((span->interpMask & SPAN_Z) && (span->arrayMask & SPAN_Z) == 0) interpolate_z(ctx, span); @@ -1192,7 +1193,7 @@ _mesa_write_texture_span( GLcontext *ctx, struct sw_span *span, if (ctx->Color.ColorLogicOpEnabled) { _mesa_logicop_rgba_span(ctx, span, span->color.rgba); } - else if (ctx->Color.BlendEnabled) { + else if (ctx->Color.BlendEnabled) { _mesa_blend_span(ctx, span, span->color.rgba); } |