Chromium Code Reviews| Index: src/gpu/GrContext.cpp |
| diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
| index b38bc1eea83c1656de881be601dc04e12d702d5c..96c1bf710f3397b7e07523ff7833061330fac5d5 100755 |
| --- a/src/gpu/GrContext.cpp |
| +++ b/src/gpu/GrContext.cpp |
| @@ -229,7 +229,8 @@ GrTextContext* GrContext::createTextContext(GrRenderTarget* renderTarget, |
| const SkDeviceProperties& |
| leakyProperties, |
| bool enableDistanceFieldFonts) { |
| - if (fGpu->caps()->pathRenderingSupport() && renderTarget->isMultisampled()) { |
| + if (fGpu->caps()->pathRenderingSupport() && |
| + renderTarget->isMultisampled(GrRenderTarget::BufferBits::kStencil_BufferBit)) { |
|
Chris Dalton
2015/04/07 23:48:23
We shouldn't need a scope resultion here ("BufferB
vbuzinov
2015/04/08 12:05:30
Done.
|
| GrStencilBuffer* sb = renderTarget->renderTargetPriv().attachStencilBuffer(); |
| if (sb) { |
| return GrStencilAndCoverTextContext::Create(this, gpuDevice, leakyProperties); |