aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/glsl/GrGLSLVarying.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/glsl/GrGLSLVarying.cpp')
-rw-r--r--src/gpu/glsl/GrGLSLVarying.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gpu/glsl/GrGLSLVarying.cpp b/src/gpu/glsl/GrGLSLVarying.cpp
index a3d50533cc..f264fc0921 100644
--- a/src/gpu/glsl/GrGLSLVarying.cpp
+++ b/src/gpu/glsl/GrGLSLVarying.cpp
@@ -28,12 +28,8 @@ void GrGLSLVaryingHandler::addFlatPassThroughAttribute(const GrGeometryProcessor
void GrGLSLVaryingHandler::writePassThroughAttribute(const GrGeometryProcessor::Attribute* input,
const char* output, const GrGLSLVarying& v) {
+ SkASSERT(!fProgramBuilder->primitiveProcessor().willUseGeoShader());
fProgramBuilder->fVS.codeAppendf("%s = %s;", v.vsOut(), input->fName);
-
- if (fProgramBuilder->primitiveProcessor().willUseGeoShader()) {
- fProgramBuilder->fGS.codeAppendf("%s = %s[0];", v.gsOut(), v.gsIn());
- }
-
fProgramBuilder->fFS.codeAppendf("%s = %s;", output, v.fsIn());
}