summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_masking.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-06-02 04:09:05 +0000
committerBrian Paul <[email protected]>2005-06-02 04:09:05 +0000
commit3fe9c40cb27b23d44e938a19fbf4f21e1b1e288b (patch)
treea282265070f1781be7a1427d1141d2dc02acc23e /src/mesa/swrast/s_masking.c
parent13c8f985d96fa7dda0fd71dc4f656ce01dcdbe85 (diff)
Remove last of the old span code.
Diffstat (limited to 'src/mesa/swrast/s_masking.c')
-rw-r--r--src/mesa/swrast/s_masking.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/mesa/swrast/s_masking.c b/src/mesa/swrast/s_masking.c
index d5f60a69587..f58b2c20e24 100644
--- a/src/mesa/swrast/s_masking.c
+++ b/src/mesa/swrast/s_masking.c
@@ -42,7 +42,6 @@ void
_swrast_mask_rgba_span(GLcontext *ctx, struct gl_renderbuffer *rb,
const struct sw_span *span, GLchan rgba[][4])
{
- SWcontext *swrast = SWRAST_CONTEXT(ctx);
GLchan dest[MAX_WIDTH][4];
#if CHAN_BITS == 8
GLuint srcMask = *((GLuint*)ctx->Color.ColorMask);
@@ -62,13 +61,7 @@ _swrast_mask_rgba_span(GLcontext *ctx, struct gl_renderbuffer *rb,
ASSERT(span->arrayMask & SPAN_RGBA);
if (span->arrayMask & SPAN_XY) {
-#if OLD_RENDERBUFFER
- if (swrast->Driver.ReadRGBAPixels)
- swrast->Driver.ReadRGBAPixels(ctx, rb, n, span->array->x, span->array->y,
- dest, span->array->mask);
- else
-#endif
- rb->GetValues(ctx, rb, n, span->array->x, span->array->y, dest);
+ rb->GetValues(ctx, rb, n, span->array->x, span->array->y, dest);
}
else {
_swrast_read_rgba_span(ctx, rb, n, span->x, span->y, dest);