| Index: src/gpu/GrDrawTarget.cpp
|
| diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp
|
| index 717cd5d1bb9f109425730cc4e4df6e109347f10c..bb473cafe45e9cdc53952627741e942f43b7e4af 100644
|
| --- a/src/gpu/GrDrawTarget.cpp
|
| +++ b/src/gpu/GrDrawTarget.cpp
|
| @@ -48,8 +48,7 @@ GrDrawTarget::GrDrawTarget(GrRenderTarget* rt, GrGpu* gpu, GrResourceProvider* r
|
| , fResourceProvider(resourceProvider)
|
| , fAuditTrail(auditTrail)
|
| , fFlags(0)
|
| - , fRenderTarget(rt)
|
| - , fInstancedRendering(fGpu->createInstancedRenderingIfSupported()) {
|
| + , fRenderTarget(rt) {
|
| // TODO: Stop extracting the context (currently needed by GrClipMaskManager)
|
| fContext = fGpu->getContext();
|
|
|
| @@ -60,6 +59,10 @@ GrDrawTarget::GrDrawTarget(GrRenderTarget* rt, GrGpu* gpu, GrResourceProvider* r
|
| fMaxBatchLookahead = (options.fMaxBatchLookahead < 0) ? kDefaultMaxBatchLookahead :
|
| options.fMaxBatchLookahead;
|
|
|
| + if (GrCaps::InstancedSupport::kNone != this->caps()->instancedSupport()) {
|
| + fInstancedRendering.reset(fGpu->createInstancedRendering());
|
| + }
|
| +
|
| rt->setLastDrawTarget(this);
|
|
|
| #ifdef SK_DEBUG
|
|
|