diff options
author | 2015-06-22 12:31:31 -0700 | |
---|---|---|
committer | 2015-06-22 12:31:32 -0700 | |
commit | c1f56b518218d1caa65d6b7101bebf0d28c02a92 (patch) | |
tree | 94f644bf6201616b4f3b31356ef7b34c7903603a /src/gpu/gl/builders | |
parent | efbffedd68636e94d4379e84a2585bce80f6fb8f (diff) |
fix for calling bindFragDataLocation on OpenGL 2.1
BUG=skia:3966
Review URL: https://codereview.chromium.org/1201623003
Diffstat (limited to 'src/gpu/gl/builders')
-rw-r--r-- | src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp b/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp index e6c07c2cdb..557cdbfa58 100644 --- a/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp +++ b/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp @@ -264,9 +264,7 @@ bool GrGLFragmentShaderBuilder::compileAndAttachShaders(GrGLuint programId, } void GrGLFragmentShaderBuilder::bindFragmentShaderLocations(GrGLuint programID) { - // ES 3.00 requires custom color output but doesn't support bindFragDataLocation - if (fHasCustomColorOutput && - kGLES_GrGLStandard != fProgramBuilder->gpu()->ctxInfo().standard()) { + if (fHasCustomColorOutput && fProgramBuilder->gpu()->glCaps().bindFragDataLocationSupport()) { GL_CALL(BindFragDataLocation(programID, 0, declared_color_output_name())); } if (fHasSecondaryOutput) { |