From 3e37bafab0a339021354b9c78f983d05d433d735 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 21 Sep 2005 02:47:32 +0000 Subject: replace GLdepth with GLuint and remove GLdepth --- src/mesa/swrast/s_drawpix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/swrast/s_drawpix.c') diff --git a/src/mesa/swrast/s_drawpix.c b/src/mesa/swrast/s_drawpix.c index db3232b04f9..5f4ea7f8ba7 100644 --- a/src/mesa/swrast/s_drawpix.c +++ b/src/mesa/swrast/s_drawpix.c @@ -643,7 +643,7 @@ draw_depth_pixels( GLcontext *ctx, GLint x, GLint y, _mesa_image_address2d(unpack, pixels, width, height, GL_DEPTH_COMPONENT, type, row, 0); if (shift == 0) { - MEMCPY(span.array->z, zSrc, width * sizeof(GLdepth)); + MEMCPY(span.array->z, zSrc, width * sizeof(GLuint)); } else { GLint col; @@ -688,7 +688,7 @@ draw_depth_pixels( GLcontext *ctx, GLint x, GLint y, { GLuint i; for (i = 0; i < span.end; i++) { - span.array->z[i] = (GLdepth) (floatSpan[i] * depthMax); + span.array->z[i] = (GLuint) (floatSpan[i] * depthMax); } } if (zoom) { -- cgit v1.2.3