summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_readpix.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-09-21 02:47:32 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>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 07e24d6cae..ab83a2995a 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);
}
}
}