From b51b0a847d7e7daaea69f77ab569086ef81c24a2 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 7 Mar 2001 05:06:11 +0000 Subject: fixed a bunch of g++ warnings/errors. Compiling with g++ can help find lots of potential problems --- src/mesa/swrast_setup/ss_triangle.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/mesa/swrast_setup/ss_triangle.c') diff --git a/src/mesa/swrast_setup/ss_triangle.c b/src/mesa/swrast_setup/ss_triangle.c index 3ed8c97fb6..2ea04ce0aa 100644 --- a/src/mesa/swrast_setup/ss_triangle.c +++ b/src/mesa/swrast_setup/ss_triangle.c @@ -236,15 +236,16 @@ static void swsetup_points( GLcontext *ctx, GLuint first, GLuint last ) { struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb; SWvertex *verts = SWSETUP_CONTEXT(ctx)->verts; - int i; + GLuint i; if (VB->Elts) { - for(i=first;iClipMask[VB->Elts[i]]==0) + for (i = first; i < last; i++) + if (VB->ClipMask[VB->Elts[i]] == 0) _swrast_Point( ctx, &verts[VB->Elts[i]] ); - } else { - for(i=first;iClipMask[i]==0) + } + else { + for (i = first; i < last; i++) + if (VB->ClipMask[i] == 0) _swrast_Point( ctx, &verts[i] ); } } -- cgit v1.2.3