diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2001-03-07 05:06:11 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2001-03-07 05:06:11 +0000 |
commit | b51b0a847d7e7daaea69f77ab569086ef81c24a2 (patch) | |
tree | 165cf8b023e6c7b1f66dacc46a6c37110ef27ea7 /src/mesa/swrast_setup/ss_triangle.c | |
parent | 249aebdd357d20f6326137c967c6b3923bef6c05 (diff) | |
download | external_mesa3d-b51b0a847d7e7daaea69f77ab569086ef81c24a2.zip external_mesa3d-b51b0a847d7e7daaea69f77ab569086ef81c24a2.tar.gz external_mesa3d-b51b0a847d7e7daaea69f77ab569086ef81c24a2.tar.bz2 |
fixed a bunch of g++ warnings/errors. Compiling with g++ can help find lots of potential problems
Diffstat (limited to 'src/mesa/swrast_setup/ss_triangle.c')
-rw-r--r-- | src/mesa/swrast_setup/ss_triangle.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mesa/swrast_setup/ss_triangle.c b/src/mesa/swrast_setup/ss_triangle.c index 3ed8c97..2ea04ce 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;i<last;i++) - if(VB->ClipMask[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;i<last;i++) - if(VB->ClipMask[i]==0) + } + else { + for (i = first; i < last; i++) + if (VB->ClipMask[i] == 0) _swrast_Point( ctx, &verts[i] ); } } |