summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_copypix.c
diff options
context:
space:
mode:
authorBrian <brian@yutani.localnet.net>2007-04-11 08:47:05 -0600
committerBrian <brian@yutani.localnet.net>2007-04-11 08:47:05 -0600
commit183d8e06206dd264adabdf8d6b6ad06143d237e8 (patch)
tree5265226b3ebedb2410d782b5057bb4331c70a6fd /src/mesa/swrast/s_copypix.c
parentb0bba038467a0b22618be105010b7b3b3859b4e5 (diff)
fix zoomed depth copies (bug 10608)
Diffstat (limited to 'src/mesa/swrast/s_copypix.c')
-rw-r--r--src/mesa/swrast/s_copypix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_copypix.c b/src/mesa/swrast/s_copypix.c
index 8f37a3dc8e..ae5bdab3dd 100644
--- a/src/mesa/swrast/s_copypix.c
+++ b/src/mesa/swrast/s_copypix.c
@@ -536,8 +536,7 @@ copy_depth_pixels( GLcontext *ctx, GLint srcx, GLint srcy,
span.end = width;
if (fb->Visual.rgbMode) {
if (zoom)
- _swrast_write_zoomed_rgba_span(ctx, destx, desty, &span,
- span.array->rgba);
+ _swrast_write_zoomed_depth_span(ctx, destx, desty, &span);
else
_swrast_write_rgba_span(ctx, &span);
}