Index: src/effects/SkPerlinNoiseShader.cpp |
diff --git a/src/effects/SkPerlinNoiseShader.cpp b/src/effects/SkPerlinNoiseShader.cpp |
index 7e4911730ebdbe5581cac802a63a8c9c1b02e9ed..cacec1e2b4eb947eeb1ba32548668d3c509150a4 100644 |
--- a/src/effects/SkPerlinNoiseShader.cpp |
+++ b/src/effects/SkPerlinNoiseShader.cpp |
@@ -603,7 +603,7 @@ void GrGLPerlinNoise::emitCode(EmitArgs& args) { |
GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; |
GrGLSLUniformHandler* uniformHandler = args.fUniformHandler; |
- SkString vCoords = fragBuilder->ensureFSCoords2D(args.fCoords, 0); |
+ SkString vCoords = fragBuilder->ensureCoords2D(args.fTransformedCoords[0]); |
fBaseFrequencyUni = uniformHandler->addUniform(kFragment_GrShaderFlag, |
kVec2f_GrSLType, kDefault_GrSLPrecision, |