Index: src/gpu/GrFragmentProcessor.cpp |
diff --git a/src/gpu/GrFragmentProcessor.cpp b/src/gpu/GrFragmentProcessor.cpp |
index 478fdb3f7d66579a6c720e2ce7e4ee7ad98c6852..4cf2e73099a2e908425ac5ca45ba0055d5b3ce38 100644 |
--- a/src/gpu/GrFragmentProcessor.cpp |
+++ b/src/gpu/GrFragmentProcessor.cpp |
@@ -153,11 +153,11 @@ const GrFragmentProcessor* GrFragmentProcessor::MulOutputByInputUnpremulColor( |
GLFP() {} |
void emitCode(EmitArgs& args) override { |
- GrGLSLFragmentBuilder* fsBuilder = args.fBuilder->getFragmentShaderBuilder(); |
+ GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder; |
this->emitChild(0, nullptr, args); |
- fsBuilder->codeAppendf("%s.rgb *= %s.rgb;", args.fOutputColor, |
+ fragBuilder->codeAppendf("%s.rgb *= %s.rgb;", args.fOutputColor, |
args.fInputColor); |
- fsBuilder->codeAppendf("%s *= %s.a;", args.fOutputColor, args.fInputColor); |
+ fragBuilder->codeAppendf("%s *= %s.a;", args.fOutputColor, args.fInputColor); |
} |
}; |
return new GLFP; |