diff --git a/src/gpu/GrTessellator.cpp b/src/gpu/GrTessellator.cpp index a40bfb402b..a4ec79373a 100644 --- a/src/gpu/GrTessellator.cpp +++ b/src/gpu/GrTessellator.cpp @@ -1833,12 +1833,12 @@ int PathToTriangles(const SkPath& path, SkScalar tolerance, const SkRect& clipBo isLinear, &outerMesh); SkPath::FillType fillType = antialias ? SkPath::kWinding_FillType : path.getFillType(); int count = count_points(polys, fillType); - if (0 == count) { - return 0; - } if (antialias) { count += count_outer_mesh_points(outerMesh); } + if (0 == count) { + return 0; + } void* verts = vertexAllocator->lock(count); if (!verts) {