int mid;
int32_t dx, tmp;
#endif
-#if !defined(GOURAUD) && !defined(TEXMAP)
- /* flat version, just pack the color now */
- color = G3D_PACK_RGB(pv[0].r, pv[0].g, pv[0].b);
-#endif
#ifdef GOURAUD
int32_t r, g, b, dr, dg, db, rslope, gslope, bslope;
#ifdef BLEND_ALPHA
int32_t z, dz, zslope;
#endif
+#if !defined(GOURAUD) && !defined(TEXMAP)
+ /* flat version, just pack the color now */
+ color = G3D_PACK_RGB(pv[0].r, pv[0].g, pv[0].b);
+#endif
+
for(i=1; i<nverts; i++) {
if(pv[i].y < pv[topidx].y) topidx = i;
if(pv[i].y > pv[botidx].y) botidx = i;