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_drawpix.c | |
parent | 4092fbd55ac92a59d09d5167ced328683bed049c (diff) |
replace GLdepth with GLuint and remove GLdepth
Diffstat (limited to 'src/mesa/swrast/s_drawpix.c')
-rw-r--r-- | src/mesa/swrast/s_drawpix.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |