diff options
Diffstat (limited to 'src/gpu/gl/GrGLProgram.cpp')
-rw-r--r-- | src/gpu/gl/GrGLProgram.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gpu/gl/GrGLProgram.cpp b/src/gpu/gl/GrGLProgram.cpp index 3691fe994b..4fe7a2b7c9 100644 --- a/src/gpu/gl/GrGLProgram.cpp +++ b/src/gpu/gl/GrGLProgram.cpp @@ -211,12 +211,8 @@ bool GrGLProgram::genProgram(const GrEffectStage* colorStages[], const GrGLProgramDesc::KeyHeader& header = fDesc.getHeader(); - bool needsVertexShader = true; - - GrGLShaderBuilder builder(fGpu, fUniformManager, fDesc, needsVertexShader); - if (GrGLShaderBuilder::VertexBuilder* vertexBuilder = builder.getVertexBuilder()) { - fUniformHandles.fViewMatrixUni = vertexBuilder->getViewMatrixUniform(); - } + GrGLFullShaderBuilder builder(fGpu, fUniformManager, fDesc); + fUniformHandles.fViewMatrixUni = builder.getViewMatrixUniform(); // incoming color to current stage being processed. SkString inColor = builder.getInputColor(); |