fixed a bunch of g++ warnings/errors. Compiling with g++ can help find lots of poten...
[mesa.git] / src / mesa / swrast_setup / ss_triangle.c
index 3ed8c97fb6a57cc63497e8584b8cb488b64fecfa..2ea04ce0aac5b1c8f24607effbd21b83e02e7a43 100644 (file)
@@ -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] );
    }
 }