summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_readpix.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-06-04 17:45:50 +0000
committerBrian Paul <[email protected]>2005-06-04 17:45:50 +0000
commit863bd565204c7fec515457dfd6c59066309cb136 (patch)
treec042842017632c2173551c9dfa2132563a785c9d /src/mesa/swrast/s_readpix.c
parent5821f3d70c80101b63530735f33072c11ce81642 (diff)
remove old span code
Diffstat (limited to 'src/mesa/swrast/s_readpix.c')
-rw-r--r--src/mesa/swrast/s_readpix.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/mesa/swrast/s_readpix.c b/src/mesa/swrast/s_readpix.c
index 559fed5da6d..de13a95ffce 100644
--- a/src/mesa/swrast/s_readpix.c
+++ b/src/mesa/swrast/s_readpix.c
@@ -300,17 +300,9 @@ read_fast_rgba_pixels( GLcontext *ctx,
rowLength = -rowLength;
}
+ ASSERT(rb->GetRow);
for (row=0; row<readHeight; row++) {
-#if OLD_RENDERBUFFER && 0
- (*swrast->Driver.ReadRGBASpan)(ctx, rb, readWidth, srcX, srcY,
- (GLchan (*)[4]) dest);
- if (ctx->DrawBuffer->UseSoftwareAlphaBuffers) {
- _swrast_read_alpha_span(ctx, readWidth, srcX, srcY,
- (GLchan (*)[4]) dest);
- }
-#else
rb->GetRow(ctx, rb, readWidth, srcX, srcY, dest);
-#endif
dest += rowLength * 4;
srcY++;
}