diff options
author | brianp <brianp> | 2001-01-19 21:56:00 +0000 |
---|---|---|
committer | brianp <brianp> | 2001-01-19 21:56:00 +0000 |
commit | 12bee3ccf302757e05db76dd19fc4d195e437cbc (patch) | |
tree | a357d030c7cad766520d6b9ff364efa96eb27dc9 /xc/extras/Mesa | |
parent | 869c0fbbf8510100e68bfe916ef49ebc50e5c30d (diff) |
GL_RETURN didn't write to software alpha buffers
Diffstat (limited to 'xc/extras/Mesa')
-rw-r--r-- | xc/extras/Mesa/src/accum.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/xc/extras/Mesa/src/accum.c b/xc/extras/Mesa/src/accum.c index dfed66c18..9c9b43c36 100644 --- a/xc/extras/Mesa/src/accum.c +++ b/xc/extras/Mesa/src/accum.c @@ -29,6 +29,7 @@ #else #include "glheader.h" #include "accum.h" +#include "alphabuf.h" #include "context.h" #include "mem.h" #include "masking.h" @@ -387,6 +388,11 @@ _mesa_Accum( GLenum op, GLfloat value ) } (*ctx->Driver.WriteRGBASpan)( ctx, width, xpos, ypos, (CONST GLubyte (*)[4]) rgba, NULL ); + if (ctx->DrawBuffer->UseSoftwareAlphaBuffers + && ctx->Color.ColorMask[ACOMP]) { + _mesa_write_alpha_span(ctx, width, xpos, ypos, + (CONST GLubyte (*)[4]) rgba, NULL); + } ypos++; } } @@ -414,6 +420,11 @@ _mesa_Accum( GLenum op, GLfloat value ) } (*ctx->Driver.WriteRGBASpan)( ctx, width, xpos, ypos, (CONST GLubyte (*)[4]) rgba, NULL ); + if (ctx->DrawBuffer->UseSoftwareAlphaBuffers + && ctx->Color.ColorMask[ACOMP]) { + _mesa_write_alpha_span(ctx, width, xpos, ypos, + (CONST GLubyte (*)[4]) rgba, NULL); + } ypos++; } } |