From bb5c84fcbc22b4fef28cf4589d6410eb3c35a496 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 1 Jul 2005 01:22:25 +0000 Subject: Remove NEW_RENDERBUFFER stuff. Now, OLD_RENDERBUFFER marks code that needs to eventually be removed when all the drivers are updated to no longer need the SetBuffer() function. --- src/mesa/swrast/s_span.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mesa/swrast/s_span.c') diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c index 3a6e7195b1..aec9a99912 100644 --- a/src/mesa/swrast/s_span.c +++ b/src/mesa/swrast/s_span.c @@ -987,7 +987,7 @@ _swrast_write_index_span( GLcontext *ctx, struct sw_span *span) } } -#if OLD_RENDERBUFFER || NEW_RENDERBUFFER +#if OLD_RENDERBUFFER /* restore default dest buffer */ _swrast_use_draw_buffer(ctx); #endif @@ -1033,7 +1033,7 @@ add_colors(GLuint n, GLchan rgba[][4], GLchan specular[][4] ) static void multi_write_rgba_span( GLcontext *ctx, struct sw_span *span ) { -#if OLD_RENDERBUFFER || NEW_RENDERBUFFER +#if OLD_RENDERBUFFER SWcontext *swrast = SWRAST_CONTEXT(ctx); #endif const GLuint colorMask = *((GLuint *) ctx->Color.ColorMask); @@ -1048,7 +1048,7 @@ multi_write_rgba_span( GLcontext *ctx, struct sw_span *span ) struct gl_renderbuffer *rb = fb->_ColorDrawBuffers[output][i]; GLchan rgbaTmp[MAX_WIDTH][4]; -#if OLD_RENDERBUFFER || NEW_RENDERBUFFER +#if OLD_RENDERBUFFER /* obsolete code */ GLuint bufferBit = fb->_ColorDrawBit[output][i]; /* Set the current read/draw buffer */ @@ -1085,7 +1085,7 @@ multi_write_rgba_span( GLcontext *ctx, struct sw_span *span ) } } -#if OLD_RENDERBUFFER || NEW_RENDERBUFFER +#if OLD_RENDERBUFFER /* restore default dest buffer */ _swrast_use_draw_buffer(ctx); #endif -- cgit v1.2.3