diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2005-05-06 14:44:16 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2005-05-06 14:44:16 +0000 |
commit | c64573997c4cfb13de5d82f6f83040b206bf6fd0 (patch) | |
tree | d3ffca8cb1636c115db13194a5ccb962d310d626 /src/mesa/swrast | |
parent | e133984f517f2273236ca8b22c2a94276c950c55 (diff) |
restore call to SetBuffer() in clear_color_buffers(), only temporary
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r-- | src/mesa/swrast/s_buffers.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mesa/swrast/s_buffers.c b/src/mesa/swrast/s_buffers.c index cf469f8c62..d2a8572e1c 100644 --- a/src/mesa/swrast/s_buffers.c +++ b/src/mesa/swrast/s_buffers.c @@ -233,6 +233,7 @@ clear_ci_buffer(GLcontext *ctx, struct gl_renderbuffer *rb) static void clear_color_buffers(GLcontext *ctx) { + SWcontext *swrast = SWRAST_CONTEXT(ctx); GLboolean masking; GLuint i; @@ -259,6 +260,11 @@ clear_color_buffers(GLcontext *ctx) for (i = 0; i < ctx->DrawBuffer->_NumColorDrawBuffers[0]; i++) { struct gl_renderbuffer *rb = ctx->DrawBuffer->_ColorDrawBuffers[0][i]; +#if OLD_RENDERBUFFER /* this is obsolete code */ + swrast->Driver.SetBuffer(ctx, ctx->DrawBuffer, + ctx->DrawBuffer->_ColorDrawBit[0][i]); +#endif + if (ctx->Visual.rgbMode) { if (masking) { clear_rgba_buffer_with_masking(ctx, rb); @@ -320,13 +326,6 @@ _swrast_Clear(GLcontext *ctx, GLbitfield mask, if (mask) { if (mask & ctx->DrawBuffer->_ColorDrawBufferMask[0]) { clear_color_buffers(ctx); - /* clear software-based alpha buffer(s) */ -#if OLD_RENDERBUFFER && 0 - if (ctx->DrawBuffer->UseSoftwareAlphaBuffers - && ctx->Color.ColorMask[ACOMP]) { - _swrast_clear_alpha_buffers( ctx ); - } -#endif } if (mask & BUFFER_BIT_DEPTH) { struct gl_renderbuffer *rb |