diff options
Diffstat (limited to 'src/gpu/GrTessellator.cpp')
-rw-r--r-- | src/gpu/GrTessellator.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpu/GrTessellator.cpp b/src/gpu/GrTessellator.cpp index 2d844f6448..22ce864197 100644 --- a/src/gpu/GrTessellator.cpp +++ b/src/gpu/GrTessellator.cpp @@ -1149,6 +1149,9 @@ Vertex* check_for_intersection(Edge* edge, Edge* other, EdgeList* activeEdges, C void sanitize_contours(Vertex** contours, int contourCnt, bool approximate) { for (int i = 0; i < contourCnt; ++i) { SkASSERT(contours[i]); + if (approximate) { + round(&contours[i]->fPrev->fPoint); + } for (Vertex* v = contours[i];;) { if (approximate) { round(&v->fPoint); @@ -1162,7 +1165,7 @@ void sanitize_contours(Vertex** contours, int contourCnt, bool approximate) { v->fPrev->fNext = v->fNext; v->fNext->fPrev = v->fPrev; if (contours[i] == v) { - contours[i] = v->fNext; + contours[i] = v->fPrev; } v = v->fPrev; } else { |