Index: src/effects/gradients/SkSweepGradient.cpp |
diff --git a/src/effects/gradients/SkSweepGradient.cpp b/src/effects/gradients/SkSweepGradient.cpp |
index 505cfd2c95d4d722e038afe9a51232f982e8aa29..bdb0e1ce25d86cb4ed2f6ead60b813691bd45eed 100644 |
--- a/src/effects/gradients/SkSweepGradient.cpp |
+++ b/src/effects/gradients/SkSweepGradient.cpp |
@@ -212,7 +212,7 @@ sk_sp<GrFragmentProcessor> GrSweepGradient::TestCreate(GrProcessorTestData* d) { |
void GrSweepGradient::GLSLSweepProcessor::emitCode(EmitArgs& args) { |
const GrSweepGradient& ge = args.fFp.cast<GrSweepGradient>(); |
this->emitUniforms(args.fUniformHandler, ge); |
- SkString coords2D = args.fFragBuilder->ensureFSCoords2D(args.fCoords, 0); |
+ SkString coords2D = args.fFragBuilder->ensureCoords2D(args.fTransformedCoords[0]); |
SkString t; |
// 0.1591549430918 is 1/(2*pi), used since atan returns values [-pi, pi] |
// On Intel GPU there is an issue where it reads the second arguement to atan "- %s.x" as an int |