Index: src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp |
diff --git a/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp b/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp |
index 76558d8875fc9be54a772790a3c7bd87ff56c50c..ff3989bf634bbd2c2d9b7bff924e6cdf18bd0c25 100644 |
--- a/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp |
+++ b/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp |
@@ -346,12 +346,10 @@ void GrGLFragmentShaderBuilder::bindFragmentShaderLocations(GrGLuint programID) |
} |
} |
-void GrGLFragmentShaderBuilder::addVarying(GrSLType type, |
- const char* name, |
- const char** fsInName, |
- GrGLShaderVar::Precision fsPrecision) { |
- fInputs.push_back().set(type, GrGLShaderVar::kVaryingIn_TypeModifier, name, fsPrecision); |
- if (fsInName) { |
- *fsInName = name; |
+void GrGLFragmentShaderBuilder::addVarying(GrGLVarying* v, GrGLShaderVar::Precision fsPrec) { |
+ v->fFsIn = v->fVsOut; |
+ if (v->fGsOut) { |
+ v->fFsIn = v->fGsOut; |
} |
+ fInputs.push_back().set(v->fType, GrGLShaderVar::kVaryingIn_TypeModifier, v->fFsIn, fsPrec); |
} |