From 8bdc1ae358986aec81d4e6e3930a85f11680b73b Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 21 Sep 2005 18:16:33 +0000 Subject: [PATCH] add missing scale factor in _swrast_read_depth_span_float() --- src/mesa/swrast/s_depth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/swrast/s_depth.c b/src/mesa/swrast/s_depth.c index abc034c7f24..d5363fcef76 100644 --- a/src/mesa/swrast/s_depth.c +++ b/src/mesa/swrast/s_depth.c @@ -1252,7 +1252,7 @@ _swrast_read_depth_span_float( GLcontext *ctx, struct gl_renderbuffer *rb, GLint i; rb->GetRow(ctx, rb, n, x, y, temp); for (i = 0; i < n; i++) { - depth[i] = temp[i]; + depth[i] = temp[i] * scale; } } else { -- 2.11.0