Index: src/gpu/GrDrawTarget.cpp |
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp |
index 3f898ab26a2061c509b0e5502fa25fe511246081..a7f4d92854e3a7c728e8fcbf52982c882722ed93 100644 |
--- a/src/gpu/GrDrawTarget.cpp |
+++ b/src/gpu/GrDrawTarget.cpp |
@@ -42,6 +42,8 @@ GrDrawTarget::GrDrawTarget(GrRenderTarget* rt, GrGpu* gpu, GrResourceProvider* r |
fContext = fGpu->getContext(); |
fClipMaskManager.reset(new GrClipMaskManager(this)); |
+ rt->setLastDrawTarget(this); |
+ |
#ifdef SK_DEBUG |
static int debugID = 0; |
fDebugID = debugID++; |