Index: src/gpu/GrDefaultPathRenderer.cpp |
diff --git a/src/gpu/GrDefaultPathRenderer.cpp b/src/gpu/GrDefaultPathRenderer.cpp |
index e4f54ccd61495790a584940ebd24f92898a8b1c6..204146307957a548bfa16f45459be3141b9fe9bb 100644 |
--- a/src/gpu/GrDefaultPathRenderer.cpp |
+++ b/src/gpu/GrDefaultPathRenderer.cpp |
@@ -367,6 +367,10 @@ public: |
drawInfo.setIndexCount(0); |
} |
batchTarget->draw(drawInfo); |
+ |
+ // put back reserves |
+ batchTarget->putBackIndices((size_t)(maxIndices - indexOffset)); |
+ batchTarget->putBackVertices((size_t)(maxVertices - vertexOffset), (size_t)vertexStride); |
} |
SkSTArray<1, Geometry, true>* geoData() { return &fGeoData; } |