diff options
author | Brian Paul <[email protected]> | 2005-09-21 02:47:32 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-09-21 02:47:32 +0000 |
commit | 3e37bafab0a339021354b9c78f983d05d433d735 (patch) | |
tree | 624d1c39e30f8a74bf0860f9389cd772f9dfe0f5 /src/mesa/swrast/s_copypix.c | |
parent | 4092fbd55ac92a59d09d5167ced328683bed049c (diff) |
replace GLdepth with GLuint and remove GLdepth
Diffstat (limited to 'src/mesa/swrast/s_copypix.c')
-rw-r--r-- | src/mesa/swrast/s_copypix.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_copypix.c b/src/mesa/swrast/s_copypix.c index 75d2defa217..caf68ecd9de 100644 --- a/src/mesa/swrast/s_copypix.c +++ b/src/mesa/swrast/s_copypix.c @@ -569,7 +569,6 @@ copy_depth_pixels( GLcontext *ctx, GLint srcx, GLint srcy, for (j = 0; j < height; j++, sy += stepy, dy += stepy) { GLfloat depth[MAX_WIDTH]; - float sum = 0; /* get depth values */ if (overlapping) { MEMCPY(depth, p, width * sizeof(GLfloat)); @@ -582,8 +581,7 @@ copy_depth_pixels( GLcontext *ctx, GLint srcx, GLint srcy, /* apply scale and bias */ for (i = 0; i < width; i++) { GLfloat d = depth[i] * ctx->Pixel.DepthScale + ctx->Pixel.DepthBias; - sum += d; - span.array->z[i] = (GLdepth) (CLAMP(d, 0.0F, 1.0F) * depthMax); + span.array->z[i] = (GLuint) (CLAMP(d, 0.0F, 1.0F) * depthMax); } /* write depth values */ |