Index: src/gpu/batches/GrAAConvexTessellator.cpp |
diff --git a/src/gpu/batches/GrAAConvexTessellator.cpp b/src/gpu/batches/GrAAConvexTessellator.cpp |
index c111b8b56293859fd8590cee31c6dcd40e4ae88d..5ef9aefddd4afc46d46c6d76cc7c92e86a409861 100644 |
--- a/src/gpu/batches/GrAAConvexTessellator.cpp |
+++ b/src/gpu/batches/GrAAConvexTessellator.cpp |
@@ -721,11 +721,11 @@ bool GrAAConvexTessellator::createInsetRing(const Ring& lastRing, Ring* nextRing |
dst[i] = nextRing->index(dst[i]); |
} |
- for (int cur = 0; cur < lastRing.numPts(); ++cur) { |
- int next = (cur + 1) % lastRing.numPts(); |
+ for (int i = 0; i < lastRing.numPts(); ++i) { |
+ int next = (i + 1) % lastRing.numPts(); |
- this->addTri(lastRing.index(cur), lastRing.index(next), dst[next]); |
- this->addTri(lastRing.index(cur), dst[next], dst[cur]); |
+ this->addTri(lastRing.index(i), lastRing.index(next), dst[next]); |
+ this->addTri(lastRing.index(i), dst[next], dst[i]); |
} |
if (done && fStrokeWidth < 0.0f) { |