diff options
author | 2015-06-04 08:49:34 -0700 | |
---|---|---|
committer | 2015-06-04 08:49:34 -0700 | |
commit | bc50e5ce6c039f02dc805361ae5b0b66f40b4820 (patch) | |
tree | 45c0fb7f35be4021fd3504c557daff91c941e1fa /src/gpu/gl/GrGLCaps.cpp | |
parent | 8804f589167a3e340d25ee1226aa71eb8a2ae930 (diff) |
Disable dual source blending support when GLSL version is too old
BUG=skia:3891
Review URL: https://codereview.chromium.org/1160923007
Diffstat (limited to 'src/gpu/gl/GrGLCaps.cpp')
-rw-r--r-- | src/gpu/gl/GrGLCaps.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp index dd4ba65f77..ad0f2caf78 100644 --- a/src/gpu/gl/GrGLCaps.cpp +++ b/src/gpu/gl/GrGLCaps.cpp @@ -984,8 +984,9 @@ void GrGLSLCaps::init(const GrGLContextInfo& ctxInfo, // Enable supported shader-related caps if (kGL_GrGLStandard == standard) { - fDualSourceBlendingSupport = ctxInfo.version() >= GR_GL_VER(3, 3) || - ctxInfo.hasExtension("GL_ARB_blend_func_extended"); + fDualSourceBlendingSupport = (ctxInfo.version() >= GR_GL_VER(3, 3) || + ctxInfo.hasExtension("GL_ARB_blend_func_extended")) && + GrGLSLSupportsNamedFragmentShaderOutputs(ctxInfo.glslGeneration()); fShaderDerivativeSupport = true; // we don't support GL_ARB_geometry_shader4, just GL 3.2+ GS fGeometryShaderSupport = ctxInfo.version() >= GR_GL_VER(3, 2) && |