| Index: src/gpu/GrDrawTarget.cpp
|
| diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp
|
| index 076b626a1ac040602d2bf627b6e8e7b26b913951..3d5f4288f441311c36b4e0e7bf5a7e1380c0c1b4 100644
|
| --- a/src/gpu/GrDrawTarget.cpp
|
| +++ b/src/gpu/GrDrawTarget.cpp
|
| @@ -215,7 +215,7 @@ void GrDrawTarget::stencilPath(const GrPipelineBuilder& pipelineBuilder,
|
| // set stencil settings for path
|
| GrStencilSettings stencilSettings;
|
| GrRenderTarget* rt = pipelineBuilder.getRenderTarget();
|
| - GrStencilAttachment* sb = rt->renderTargetPriv().attachStencilAttachment();
|
| + GrStencilAttachment* sb = fResourceProvider->attachStencilAttachment(rt);
|
| this->getPathStencilSettingsForFilltype(fill, sb, &stencilSettings);
|
|
|
| GrBatch* batch = GrStencilPathBatch::Create(viewMatrix,
|
| @@ -270,7 +270,7 @@ void GrDrawTarget::drawPathBatch(const GrPipelineBuilder& pipelineBuilder,
|
| // Ensure the render target has a stencil buffer and get the stencil settings.
|
| GrStencilSettings stencilSettings;
|
| GrRenderTarget* rt = pipelineBuilder.getRenderTarget();
|
| - GrStencilAttachment* sb = rt->renderTargetPriv().attachStencilAttachment();
|
| + GrStencilAttachment* sb = fResourceProvider->attachStencilAttachment(rt);
|
| this->getPathStencilSettingsForFilltype(fill, sb, &stencilSettings);
|
| batch->setStencilSettings(stencilSettings);
|
|
|
|
|