Index: src/gpu/GrStencilAndCoverTextContext.cpp |
diff --git a/src/gpu/GrStencilAndCoverTextContext.cpp b/src/gpu/GrStencilAndCoverTextContext.cpp |
index 4d34cf47bab9046116a792d6afc5ec5c50c55257..763863fe758915705df47180e3aa222e003ea514 100644 |
--- a/src/gpu/GrStencilAndCoverTextContext.cpp |
+++ b/src/gpu/GrStencilAndCoverTextContext.cpp |
@@ -373,6 +373,8 @@ void GrStencilAndCoverTextContext::init(GrRenderTarget* rt, |
fStateRestore.set(&fPipelineBuilder); |
fPipelineBuilder.setFromPaint(fPaint, fRenderTarget, fClip); |
+ SkASSERT(fRenderTarget->isStencilBufferMultisampled() || !fPaint.isAntiAlias()); |
+ fPipelineBuilder.setState(GrPipelineBuilder::kHWAntialias_Flag, fPaint.isAntiAlias()); |
GR_STATIC_CONST_SAME_STENCIL(kStencilPass, |
kZero_StencilOp, |