diff options
Diffstat (limited to 'src/gpu/GrDrawState.h')
-rw-r--r-- | src/gpu/GrDrawState.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/GrDrawState.h b/src/gpu/GrDrawState.h index 3c6c3a371a..b53944189a 100644 --- a/src/gpu/GrDrawState.h +++ b/src/gpu/GrDrawState.h @@ -198,16 +198,16 @@ public: } void createTextureEffect(int stageIdx, GrTexture* texture, const GrMatrix& matrix) { GrAssert(!this->getStage(stageIdx).getEffect()); - GrEffect* effect = SkNEW_ARGS(GrSingleTextureEffect, (texture)); - this->stage(stageIdx)->setEffect(effect, matrix)->unref(); + GrEffect* effect = SkNEW_ARGS(GrSingleTextureEffect, (texture, matrix)); + this->stage(stageIdx)->setEffect(effect)->unref(); } void createTextureEffect(int stageIdx, GrTexture* texture, const GrMatrix& matrix, const GrTextureParams& params) { GrAssert(!this->getStage(stageIdx).getEffect()); - GrEffect* effect = SkNEW_ARGS(GrSingleTextureEffect, (texture, params)); - this->stage(stageIdx)->setEffect(effect, matrix)->unref(); + GrEffect* effect = SkNEW_ARGS(GrSingleTextureEffect, (texture, matrix, params)); + this->stage(stageIdx)->setEffect(effect)->unref(); } |