Index: src/gpu/GrContext.cpp |
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
index 78f29e73bc713d773ce27ce94164244316b83c25..ed4709df64274a7d2c454421e08d8fd9c9ecd4bc 100755 |
--- a/src/gpu/GrContext.cpp |
+++ b/src/gpu/GrContext.cpp |
@@ -218,7 +218,8 @@ GrTextContext* GrContext::createTextContext(GrRenderTarget* renderTarget, |
const SkDeviceProperties& |
leakyProperties, |
bool enableDistanceFieldFonts) { |
- if (fGpu->caps()->pathRenderingSupport() && renderTarget->isMultisampled()) { |
+ if (fGpu->caps()->pathRenderingSupport() && |
+ renderTarget->isMultisampled(GrRenderTarget::kStencilBuffer_PipelineStage)) { |
GrStencilBuffer* sb = renderTarget->renderTargetPriv().attachStencilBuffer(); |
bsalomon
2015/04/01 13:15:35
I'm not sure that this is necessary anymore. We sh
Chris Dalton
2015/04/01 20:34:17
So I don't think it has to be awkward. While it is
|
if (sb) { |
return GrStencilAndCoverTextContext::Create(this, leakyProperties); |