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 abc034c..d5363fc 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 {