Index: src/gpu/GrDefaultPathRenderer.cpp |
diff --git a/src/gpu/GrDefaultPathRenderer.cpp b/src/gpu/GrDefaultPathRenderer.cpp |
index 43a545c28ddb2f4b2a4be78c73d450d61e5b1790..e4ac225d72ace455f5897d66ab61a15508db1df4 100644 |
--- a/src/gpu/GrDefaultPathRenderer.cpp |
+++ b/src/gpu/GrDefaultPathRenderer.cpp |
@@ -8,6 +8,7 @@ |
#include "GrDefaultPathRenderer.h" |
#include "GrContext.h" |
+#include "GrDefaultGeoProcFactory.h" |
#include "GrDrawState.h" |
#include "GrPathUtils.h" |
#include "SkString.h" |
@@ -496,6 +497,8 @@ bool GrDefaultPathRenderer::internalDrawPath(const SkPath& path, |
if (passCount > 1) { |
drawState->enableState(GrDrawState::kNoColorWrites_StateBit); |
} |
+ GrDrawState::AutoRestoreEffects are(drawState); |
+ drawState->setGeometryProcessor(GrDefaultGeoProcFactory::Create(false))->unref(); |
if (indexCnt) { |
target->drawIndexed(primType, 0, 0, |
vertexCnt, indexCnt, &devBounds); |