Index: src/gpu/gl/builders/GrGLProgramBuilder.cpp |
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
index 905fcdeb96040f45b57ed20d63b07ae43af9d0e6..b1d59801b93e0e6ad15bbd1d701af2d0dcd5b743 100644 |
--- a/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
+++ b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
@@ -134,9 +134,10 @@ GrGLProgram* GrGLProgramBuilder::finalize() { |
return nullptr; |
} |
+ this->finalizeShaders(); |
+ |
// compile shaders and bind attributes / uniforms |
SkTDArray<GrGLuint> shadersToDelete; |
- fVS.finalize(GrGLSLUniformHandler::kVertex_Visibility); |
if (!this->compileAndAttachShaders(fVS, programID, GR_GL_VERTEX_SHADER, &shadersToDelete)) { |
this->cleanupProgram(programID, shadersToDelete); |
return nullptr; |
@@ -153,7 +154,6 @@ GrGLProgram* GrGLProgramBuilder::finalize() { |
} |
} |
- fFS.finalize(GrGLSLUniformHandler::kFragment_Visibility); |
if (!this->compileAndAttachShaders(fFS, programID, GR_GL_FRAGMENT_SHADER, &shadersToDelete)) { |
this->cleanupProgram(programID, shadersToDelete); |
return nullptr; |