Index: src/gpu/gl/GrGpuGL_program.cpp |
diff --git a/src/gpu/gl/GrGpuGL_program.cpp b/src/gpu/gl/GrGpuGL_program.cpp |
index 26ad9b8f159fa59be32960ea068e5bc2157e5997..af24ce6ffc411390452b8c4c2264df7a83e09e22 100644 |
--- a/src/gpu/gl/GrGpuGL_program.cpp |
+++ b/src/gpu/gl/GrGpuGL_program.cpp |
@@ -208,12 +208,14 @@ bool GrGpuGL::flushGraphicsState(DrawType type, const GrDeviceCoordTexture* dstC |
// GrGpu::setupClipAndFlushState should have already checked this and bailed if not true. |
SkASSERT(NULL != drawState.getRenderTarget()); |
- if (kStencilPath_DrawType == type) { |
+ if (kStencilPath_DrawType == type || kFillPath_DrawType == type) { |
const GrRenderTarget* rt = this->getDrawState().getRenderTarget(); |
SkISize size; |
size.set(rt->width(), rt->height()); |
this->setProjectionMatrix(drawState.getViewMatrix(), size, rt->origin()); |
- } else { |
+ } |
+ |
+ if (kStencilPath_DrawType != type) { |
this->flushMiscFixedFunctionState(); |
GrBlendCoeff srcCoeff; |