diff options
author | Brian Paul <[email protected]> | 2005-06-02 04:09:05 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-06-02 04:09:05 +0000 |
commit | 3fe9c40cb27b23d44e938a19fbf4f21e1b1e288b (patch) | |
tree | a282265070f1781be7a1427d1141d2dc02acc23e /src/mesa/swrast/s_logic.c | |
parent | 13c8f985d96fa7dda0fd71dc4f656ce01dcdbe85 (diff) |
Remove last of the old span code.
Diffstat (limited to 'src/mesa/swrast/s_logic.c')
-rw-r--r-- | src/mesa/swrast/s_logic.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mesa/swrast/s_logic.c b/src/mesa/swrast/s_logic.c index aabe18d9c9a..40ece9f73cb 100644 --- a/src/mesa/swrast/s_logic.c +++ b/src/mesa/swrast/s_logic.c @@ -188,14 +188,13 @@ _swrast_logicop_ci_span(GLcontext *ctx, struct gl_renderbuffer *rb, GLuint dest[MAX_WIDTH]; ASSERT(span->end < MAX_WIDTH); + ASSERT(rb->DataType == GL_UNSIGNED_INT); /* Read dest values from frame buffer */ if (span->arrayMask & SPAN_XY) { - ASSERT(rb->DataType == GL_UNSIGNED_INT); rb->GetValues(ctx, rb, span->end, span->array->x, span->array->y, dest); } else { - ASSERT(rb->DataType == GL_UNSIGNED_INT); rb->GetRow(ctx, rb, span->end, span->x, span->y, dest); } @@ -212,16 +211,14 @@ void _swrast_logicop_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]; ASSERT(span->end < MAX_WIDTH); ASSERT(span->arrayMask & SPAN_RGBA); + ASSERT(rb->DataType == GL_UNSIGNED_INT); if (span->arrayMask & SPAN_XY) { - swrast->Driver.ReadRGBAPixels(ctx, rb, span->end, - span->array->x, span->array->y, - dest, span->array->mask); + rb->GetValues(ctx, rb, span->end, span->array->x, span->array->y, dest); } else { _swrast_read_rgba_span(ctx, rb, span->end, span->x, span->y, dest); |