add missing scale factor in _swrast_read_depth_span_float()
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 21 Sep 2005 18:16:33 +0000 (18:16 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 21 Sep 2005 18:16:33 +0000 (18:16 +0000)
src/mesa/swrast/s_depth.c

index abc034c7f244c8347b0e43482b5658ee97075aaf..d5363fcef76ac1d11338b0727cbbd1edc0a68234 100644 (file)
@@ -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 {