diff options
Diffstat (limited to 'src/gpu/GrTextContext.cpp')
-rw-r--r-- | src/gpu/GrTextContext.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gpu/GrTextContext.cpp b/src/gpu/GrTextContext.cpp index edd92db088..109fc6bc95 100644 --- a/src/gpu/GrTextContext.cpp +++ b/src/gpu/GrTextContext.cpp @@ -19,6 +19,7 @@ #include "SkPath.h" enum { + kGlyphMaskStage = GrPaint::kTotalStages, }; @@ -29,12 +30,12 @@ void GrTextContext::flushGlyphs() { GrDrawState* drawState = fDrawTarget->drawState(); if (fCurrVertex > 0) { // setup our sampler state for our text texture/atlas - drawState->sampler(kGlyphMaskStage)->reset(SkShader::kRepeat_TileMode, - !fExtMatrix.isIdentity()); + drawState->sampler(kGlyphMaskStage)->reset(); GrAssert(GrIsALIGN4(fCurrVertex)); GrAssert(fCurrTexture); - drawState->createTextureEffect(kGlyphMaskStage, fCurrTexture); + GrTextureParams params(SkShader::kRepeat_TileMode, !fExtMatrix.isIdentity()); + drawState->createTextureEffect(kGlyphMaskStage, fCurrTexture, params); if (!GrPixelConfigIsAlphaOnly(fCurrTexture->config())) { if (kOne_GrBlendCoeff != fPaint.fSrcBlendCoeff || |