Index: src/gpu/batches/GrTessellatingPathRenderer.cpp |
diff --git a/src/gpu/batches/GrTessellatingPathRenderer.cpp b/src/gpu/batches/GrTessellatingPathRenderer.cpp |
index 06f31cd8db7147fcb542524cfe16768baa9c36c1..23c3fcfa4fb95a59be4b5d2bddb5cf96608df56e 100644 |
--- a/src/gpu/batches/GrTessellatingPathRenderer.cpp |
+++ b/src/gpu/batches/GrTessellatingPathRenderer.cpp |
@@ -228,13 +228,14 @@ private: |
void drawVertices(Target* target, const GrGeometryProcessor* gp, const GrVertexBuffer* vb, |
int firstVertex, int count) const { |
- target->initDraw(gp, this->pipeline()); |
SkASSERT(gp->getVertexStride() == sizeof(SkPoint)); |
GrPrimitiveType primitiveType = TESSELLATOR_WIREFRAME ? kLines_GrPrimitiveType |
: kTriangles_GrPrimitiveType; |
+ target->initDraw(gp, primitiveType); |
+ |
GrVertices vertices; |
- vertices.init(primitiveType, vb, firstVertex, count); |
+ vertices.init(vb, firstVertex, count); |
target->draw(vertices); |
} |