summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_readpix.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-09-21 02:47:32 +0000
committerBrian Paul <[email protected]>2005-09-21 02:47:32 +0000
commit3e37bafab0a339021354b9c78f983d05d433d735 (patch)
tree624d1c39e30f8a74bf0860f9389cd772f9dfe0f5 /src/mesa/swrast/s_readpix.c
parent4092fbd55ac92a59d09d5167ced328683bed049c (diff)
replace GLdepth with GLuint and remove GLdepth
Diffstat (limited to 'src/mesa/swrast/s_readpix.c')
-rw-r--r--src/mesa/swrast/s_readpix.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/mesa/swrast/s_readpix.c b/src/mesa/swrast/s_readpix.c
index 07e24d6caeb..ab83a2995a2 100644
--- a/src/mesa/swrast/s_readpix.c
+++ b/src/mesa/swrast/s_readpix.c
@@ -169,16 +169,11 @@ read_depth_pixels( GLcontext *ctx,
/* General case (slower) */
GLint j;
for (j = 0; j < height; j++, y++) {
- GLfloat depth[MAX_WIDTH];
- GLvoid *dest;
-
- _swrast_read_depth_span_float(ctx, rb, width, x, y, depth);
-
- dest = _mesa_image_address2d(packing, pixels, width, height,
- GL_DEPTH_COMPONENT, type, j, 0);
-
- _mesa_pack_depth_span(ctx, width, (GLdepth *) dest, type,
- depth, packing);
+ GLfloat depthValues[MAX_WIDTH];
+ GLvoid *dest = _mesa_image_address2d(packing, pixels, width, height,
+ GL_DEPTH_COMPONENT, type, j, 0);
+ _swrast_read_depth_span_float(ctx, rb, width, x, y, depthValues);
+ _mesa_pack_depth_span(ctx, width, dest, type, depthValues, packing);
}
}
}