| Index: src/gpu/gl/builders/GrGLProgramBuilder.cpp
|
| diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp
|
| index c410523a9b37f63011dccb7053b105ef282156ce..542d13d14cdc6240d22b2947fb8e699cdd1fdd4f 100644
|
| --- a/src/gpu/gl/builders/GrGLProgramBuilder.cpp
|
| +++ b/src/gpu/gl/builders/GrGLProgramBuilder.cpp
|
| @@ -159,7 +159,7 @@ void GrGLProgramBuilder::appendUniformDecls(ShaderVisibility visibility,
|
| SkString* out) const {
|
| for (int i = 0; i < fUniforms.count(); ++i) {
|
| if (fUniforms[i].fVisibility & visibility) {
|
| - fUniforms[i].fVariable.appendDecl(this->ctxInfo(), out);
|
| + fUniforms[i].fVariable.appendDecl(this->glslCaps(), out);
|
| out->append(";\n");
|
| }
|
| }
|
| @@ -169,6 +169,10 @@ const GrGLContextInfo& GrGLProgramBuilder::ctxInfo() const {
|
| return fGpu->ctxInfo();
|
| }
|
|
|
| +const GrGLSLCaps* GrGLProgramBuilder::glslCaps() const {
|
| + return this->ctxInfo().caps()->glslCaps();
|
| +}
|
| +
|
| bool GrGLProgramBuilder::emitAndInstallProcs(GrGLSLExpr4* inputColor, GrGLSLExpr4* inputCoverage) {
|
| // First we loop over all of the installed processors and collect coord transforms. These will
|
| // be sent to the GrGLPrimitiveProcessor in its emitCode function
|
|
|