Index: gm/texdata.cpp |
diff --git a/gm/texdata.cpp b/gm/texdata.cpp |
index a1b1e6efd7af872fe9d118f15d61b81f1608d652..e0aa233196db933502e972ac9ca1d5f319c84fcc 100644 |
--- a/gm/texdata.cpp |
+++ b/gm/texdata.cpp |
@@ -93,8 +93,6 @@ protected: |
GrContext::AutoClip acs(ctx, SkRect::MakeWH(2*S, 2*S)); |
- ctx->setRenderTarget(target); |
- |
GrPaint paint; |
paint.setPorterDuffXPFactory(SkXfermode::kSrcOver_Mode); |
@@ -111,7 +109,7 @@ protected: |
tm.postIDiv(2*S, 2*S); |
paint.addColorTextureProcessor(texture, tm); |
- ctx->drawRect(paint, vm, SkRect::MakeWH(2*S, 2*S)); |
+ ctx->drawRect(target, paint, vm, SkRect::MakeWH(2*S, 2*S)); |
// now update the lower right of the texture in first pass |
// or upper right in second pass |
@@ -125,7 +123,7 @@ protected: |
texture->writePixels(S, (i ? 0 : S), S, S, |
texture->config(), gTextureData.get(), |
4 * stride); |
- ctx->drawRect(paint, vm, SkRect::MakeWH(2*S, 2*S)); |
+ ctx->drawRect(target, paint, vm, SkRect::MakeWH(2*S, 2*S)); |
} |
} else { |
this->drawGpuOnlyMessage(canvas); |