Index: src/gpu/effects/GrCoverageSetOpXP.cpp |
diff --git a/src/gpu/effects/GrCoverageSetOpXP.cpp b/src/gpu/effects/GrCoverageSetOpXP.cpp |
index 86cd50292ca7204cb083b23ae3de498329513c71..bcdb6d81dcf89c2838744e18af09240709ff0f58 100644 |
--- a/src/gpu/effects/GrCoverageSetOpXP.cpp |
+++ b/src/gpu/effects/GrCoverageSetOpXP.cpp |
@@ -72,12 +72,12 @@ public: |
private: |
void emitOutputsForBlendState(const EmitArgs& args) override { |
const CoverageSetOpXP& xp = args.fXP.cast<CoverageSetOpXP>(); |
- GrGLSLXPFragmentBuilder* fsBuilder = args.fPB->getFragmentShaderBuilder(); |
+ GrGLSLXPFragmentBuilder* fragBuilder = args.fXPFragBuilder; |
if (xp.invertCoverage()) { |
- fsBuilder->codeAppendf("%s = 1.0 - %s;", args.fOutputPrimary, args.fInputCoverage); |
+ fragBuilder->codeAppendf("%s = 1.0 - %s;", args.fOutputPrimary, args.fInputCoverage); |
} else { |
- fsBuilder->codeAppendf("%s = %s;", args.fOutputPrimary, args.fInputCoverage); |
+ fragBuilder->codeAppendf("%s = %s;", args.fOutputPrimary, args.fInputCoverage); |
} |
} |