diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-11-26 03:00:04 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2002-11-26 03:00:04 +0000 |
commit | 957a0cdb13d2564a17c1fc9f6600d6cd56cb48d7 (patch) | |
tree | afc4407d4e59d015b6533f3a93321ced90e5ae1d /src | |
parent | f345c61a59d9d979eb31fe7e9c6a035f71ac2075 (diff) |
added missing call to _mesa_write_mono_alpha_span()
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/swrast/s_span.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c index da22fe14a6..a03eec8b2a 100644 --- a/src/mesa/swrast/s_span.c +++ b/src/mesa/swrast/s_span.c @@ -1,8 +1,8 @@ -/* $Id: s_span.c,v 1.52 2002/11/09 21:28:41 brianp Exp $ */ +/* $Id: s_span.c,v 1.53 2002/11/26 03:00:04 brianp Exp $ */ /* * Mesa 3-D graphics library - * Version: 5.0 + * Version: 5.0.1 * * Copyright (C) 1999-2002 Brian Paul All Rights Reserved. * @@ -1060,7 +1060,11 @@ _mesa_write_rgba_span( GLcontext *ctx, struct sw_span *span) color[ACOMP] = FixedToChan(span->alpha); (*swrast->Driver.WriteMonoRGBASpan)(ctx, span->end, span->x, span->y, color, span->array->mask); - /* XXX software alpha buffer writes! */ + if (swrast->_RasterMask & ALPHABUF_BIT) { + _mesa_write_mono_alpha_span(ctx, span->end, span->x, span->y, + color[ACOMP], + span->writeAll ? ((const GLubyte *) NULL) : span->array->mask); + } } else { /* each pixel is a different color */ |