summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_triangle.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_triangle.c
parent4092fbd55ac92a59d09d5167ced328683bed049c (diff)
replace GLdepth with GLuint and remove GLdepth
Diffstat (limited to 'src/mesa/swrast/s_triangle.c')
-rw-r--r--src/mesa/swrast/s_triangle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_triangle.c b/src/mesa/swrast/s_triangle.c
index 08796471c5..6ed405f053 100644
--- a/src/mesa/swrast/s_triangle.c
+++ b/src/mesa/swrast/s_triangle.c
@@ -218,7 +218,7 @@ _swrast_culltriangle( GLcontext *ctx,
span.intTex[0] -= FIXED_HALF; /* off-by-one error? */ \
span.intTex[1] -= FIXED_HALF; \
for (i = 0; i < span.end; i++) { \
- const GLdepth z = FixedToDepth(span.z); \
+ const GLuint z = FixedToDepth(span.z); \
if (z < zRow[i]) { \
GLint s = FixedToInt(span.intTex[0]) & smask; \
GLint t = FixedToInt(span.intTex[1]) & tmask; \
@@ -920,7 +920,7 @@ fast_persp_span(GLcontext *ctx, struct sw_span *span,
const GLushort *zRow = (const GLushort *) \
rb->GetPointer(ctx, rb, span.x, span.y); \
for (i = 0; i < span.end; i++) { \
- GLdepth z = FixedToDepth(span.z); \
+ GLuint z = FixedToDepth(span.z); \
if (z < zRow[i]) { \
q->Result++; \
} \