trying to fix the clipping bugs
[meshfrac] / src / meshgen.c
index 3cc3188..cbce81c 100644 (file)
@@ -73,9 +73,9 @@ void gen_sphere(struct cmesh *mesh, float rad, int usub, int vsub, float urange,
                                *idxarr++ = idx + 1;
                                *idxarr++ = idx + vverts + 1;
 
+                               *idxarr++ = idx + vverts;
                                *idxarr++ = idx;
                                *idxarr++ = idx + vverts + 1;
-                               *idxarr++ = idx + vverts;
                        }
 
                        v += dv;