From bdd15b5749b45929fa642c3e47997f52eb07fbe5 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 4 May 2004 15:11:06 +0000 Subject: Fix minor warnings found with g++. --- src/mesa/swrast_setup/ss_triangle.c | 4 ++-- src/mesa/swrast_setup/ss_tritmp.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/swrast_setup') diff --git a/src/mesa/swrast_setup/ss_triangle.c b/src/mesa/swrast_setup/ss_triangle.c index 00876fe68d..1f46331be3 100644 --- a/src/mesa/swrast_setup/ss_triangle.c +++ b/src/mesa/swrast_setup/ss_triangle.c @@ -58,7 +58,7 @@ static void _swsetup_render_line_tri( GLcontext *ctx, SWvertex *v2 = &verts[e2]; GLchan c[2][4]; GLchan s[2][4]; - GLuint i[2]; + GLfloat i[2]; /* cull testing */ if (ctx->Polygon.CullFlag) { @@ -117,7 +117,7 @@ static void _swsetup_render_point_tri( GLcontext *ctx, SWvertex *v2 = &verts[e2]; GLchan c[2][4]; GLchan s[2][4]; - GLuint i[2]; + GLfloat i[2]; /* cull testing */ if (ctx->Polygon.CullFlag) { diff --git a/src/mesa/swrast_setup/ss_tritmp.h b/src/mesa/swrast_setup/ss_tritmp.h index e1c2565c73..3465ad3912 100644 --- a/src/mesa/swrast_setup/ss_tritmp.h +++ b/src/mesa/swrast_setup/ss_tritmp.h @@ -37,7 +37,7 @@ static void TAG(triangle)(GLcontext *ctx, GLuint e0, GLuint e1, GLuint e2 ) GLuint facing = 0; GLchan saved_color[3][4]; GLchan saved_spec[3][4]; - GLuint saved_index[3]; + GLfloat saved_index[3]; v[0] = &verts[e0]; v[1] = &verts[e1]; -- cgit v1.2.3