diff options
Diffstat (limited to 'gm')
-rw-r--r-- | gm/texdata.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gm/texdata.cpp b/gm/texdata.cpp index 724b4ec826..09721acc13 100644 --- a/gm/texdata.cpp +++ b/gm/texdata.cpp @@ -112,12 +112,9 @@ protected: ctx->setMatrix(vm); GrMatrix tm; tm = vm; - GrMatrix* sampleMat = paint.colorSampler(0)->matrix(); - *sampleMat = vm; - sampleMat->postIDiv(2*S, 2*S); - paint.colorSampler(0)->setCustomStage( - SkNEW_ARGS(GrSingleTextureEffect, (texture)))->unref(); - + tm.postIDiv(2*S, 2*S); + paint.colorSampler(0)->setCustomStage(SkNEW_ARGS(GrSingleTextureEffect, + (texture)), tm)->unref(); ctx->drawRect(paint, GrRect::MakeWH(2*S, 2*S)); |