Index: src/gpu/effects/GrSimpleTextureEffect.cpp |
diff --git a/src/gpu/effects/GrSimpleTextureEffect.cpp b/src/gpu/effects/GrSimpleTextureEffect.cpp |
index 98111553811cabad0f7af5de4eb13a47380af250..4db6f2c5098170fcf249d434fb1649e12b033573 100644 |
--- a/src/gpu/effects/GrSimpleTextureEffect.cpp |
+++ b/src/gpu/effects/GrSimpleTextureEffect.cpp |
@@ -17,13 +17,13 @@ public: |
GrGLSimpleTextureEffect(const GrProcessor&) {} |
virtual void emitCode(EmitArgs& args) override { |
- GrGLSLFragmentBuilder* fsBuilder = args.fBuilder->getFragmentShaderBuilder(); |
- fsBuilder->codeAppendf("\t%s = ", args.fOutputColor); |
- fsBuilder->appendTextureLookupAndModulate(args.fInputColor, |
+ GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder; |
+ fragBuilder->codeAppendf("\t%s = ", args.fOutputColor); |
+ fragBuilder->appendTextureLookupAndModulate(args.fInputColor, |
args.fSamplers[0], |
args.fCoords[0].c_str(), |
args.fCoords[0].getType()); |
- fsBuilder->codeAppend(";\n"); |
+ fragBuilder->codeAppend(";\n"); |
} |
private: |