Index: src/gpu/batches/GrAAHairLinePathRenderer.cpp |
diff --git a/src/gpu/batches/GrAAHairLinePathRenderer.cpp b/src/gpu/batches/GrAAHairLinePathRenderer.cpp |
index 194c79e41e0d1ef80d8566defc517ee79c2512b1..9d73cf4f17cda711f6fde7e2ecd3ba82a51454f3 100644 |
--- a/src/gpu/batches/GrAAHairLinePathRenderer.cpp |
+++ b/src/gpu/batches/GrAAHairLinePathRenderer.cpp |
@@ -145,7 +145,10 @@ static int split_conic(const SkPoint src[3], SkConic dst[2], const SkScalar weig |
if (dst) { |
SkConic conic; |
conic.set(src, weight); |
- conic.chopAt(t, dst); |
+ if (!conic.chopAt(t, dst)) { |
+ dst[0].set(src, weight); |
+ return 1; |
+ } |
} |
return 2; |
} |