Index: tests/GLProgramsTest.cpp |
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp |
index 47a88fcbb5786c19e6ad2f7ee8ea2d20f6b8f02e..9fa8dafda61f9bd9ab0d83d0622a9f2c5d093474 100644 |
--- a/tests/GLProgramsTest.cpp |
+++ b/tests/GLProgramsTest.cpp |
@@ -48,11 +48,11 @@ public: |
virtual void emitCode(EmitArgs& args) override { |
// pass through |
- GrGLSLFragmentBuilder* fsBuilder = args.fBuilder->getFragmentShaderBuilder(); |
+ GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder; |
if (args.fInputColor) { |
- fsBuilder->codeAppendf("%s = %s;\n", args.fOutputColor, args.fInputColor); |
+ fragBuilder->codeAppendf("%s = %s;\n", args.fOutputColor, args.fInputColor); |
} else { |
- fsBuilder->codeAppendf("%s = vec4(1.0);\n", args.fOutputColor); |
+ fragBuilder->codeAppendf("%s = vec4(1.0);\n", args.fOutputColor); |
} |
} |