summaryrefslogtreecommitdiff
path: root/src/mesa/swrast_setup
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-05-04 15:11:06 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-05-04 15:11:06 +0000
commitbdd15b5749b45929fa642c3e47997f52eb07fbe5 (patch)
tree103b77f6cd3e845f0816092a7e21a57ec6f98a2c /src/mesa/swrast_setup
parent33ffbd1c58dc8582f67d946f9eb26127e9851a10 (diff)
Fix minor warnings found with g++.
Diffstat (limited to 'src/mesa/swrast_setup')
-rw-r--r--src/mesa/swrast_setup/ss_triangle.c4
-rw-r--r--src/mesa/swrast_setup/ss_tritmp.h2
2 files changed, 3 insertions, 3 deletions
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];