| Index: src/gpu/effects/GrDistanceFieldTextureEffect.cpp
|
| diff --git a/src/gpu/effects/GrDistanceFieldTextureEffect.cpp b/src/gpu/effects/GrDistanceFieldTextureEffect.cpp
|
| index 3b9bc9b6f0dcb7e111779f7bd136a3bb52747e8a..89a634c5c40406a1663f7fbe9a1880be9bad1993 100755
|
| --- a/src/gpu/effects/GrDistanceFieldTextureEffect.cpp
|
| +++ b/src/gpu/effects/GrDistanceFieldTextureEffect.cpp
|
| @@ -56,7 +56,7 @@ public:
|
| GrGLVertToFrag uv(kVec2f_GrSLType);
|
| args.fPB->addVarying("TextureCoords", &uv, kHigh_GrSLPrecision);
|
| // this is only used with text, so our texture bounds always match the glyph atlas
|
| - vsBuilder->codeAppendf("%s = vec2(" GR_FONT_ATLAS_RECIP_WIDTH ", "
|
| + vsBuilder->codeAppendf("%s = vec2(" GR_FONT_ATLAS_A8_RECIP_WIDTH ", "
|
| GR_FONT_ATLAS_RECIP_HEIGHT ")*%s;", uv.vsOut(),
|
| dfTexEffect.inTextureCoords()->fName);
|
|
|
| @@ -582,7 +582,7 @@ public:
|
| GrGLVertToFrag uv(kVec2f_GrSLType);
|
| args.fPB->addVarying("TextureCoords", &uv, kHigh_GrSLPrecision);
|
| // this is only used with text, so our texture bounds always match the glyph atlas
|
| - vsBuilder->codeAppendf("%s = vec2(" GR_FONT_ATLAS_RECIP_WIDTH ", "
|
| + vsBuilder->codeAppendf("%s = vec2(" GR_FONT_ATLAS_A8_RECIP_WIDTH ", "
|
| GR_FONT_ATLAS_RECIP_HEIGHT ")*%s;", uv.vsOut(),
|
| dfTexEffect.inTextureCoords()->fName);
|
|
|
|
|