aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/builders/GrGLProgramBuilder.cpp
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-10-01 06:28:11 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-10-01 06:28:11 -0700
commit7bdd70ab9162980f3173c98c48234f9f345665a3 (patch)
treeac07ed63f43f43f6cd7f2c9d25574c18dd02b804 /src/gpu/gl/builders/GrGLProgramBuilder.cpp
parent7b60c2cd1af1f5834a32fc7f68b2ce1e70d12613 (diff)
Fix for 2056
Diffstat (limited to 'src/gpu/gl/builders/GrGLProgramBuilder.cpp')
-rw-r--r--src/gpu/gl/builders/GrGLProgramBuilder.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp
index 491c34b79b..c410523a9b 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()));