Index: src/gpu/gl/builders/GrGLProgramBuilder.cpp |
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
index 491c34b79bbf6924d4e327f149189860551464f8..c410523a9b37f63011dccb7053b105ef282156ce 100644 |
--- a/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
+++ b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
@@ -421,8 +421,7 @@ GrGLProgram* GrGLProgramBuilder::finalize() { |
} |
void GrGLProgramBuilder::bindProgramResourceLocations(GrGLuint programID) { |
- bool usingBindUniform = fGpu->glInterface()->fFunctions.fBindUniformLocation != nullptr; |
- if (usingBindUniform) { |
+ if (fGpu->glCaps().bindUniformLocationSupport()) { |
int count = fUniforms.count(); |
for (int i = 0; i < count; ++i) { |
GL_CALL(BindUniformLocation(programID, i, fUniforms[i].fVariable.c_str())); |