diff options
author | 2018-01-24 09:28:28 -0500 | |
---|---|---|
committer | 2018-01-24 15:05:30 +0000 | |
commit | 4e69f14814d14fd44aa93404656280b388419265 (patch) | |
tree | 499410ba18af82cddd0c5323057bda808755c3fb /src/gpu/gl/GrGLCaps.cpp | |
parent | 0a134c4af18245fc25241c0be6469fdbf1e67b0c (diff) |
Fix noncoherent advanced blend eq NV workaround
It should only be applied when the coherent extension is not available.
Change-Id: Ic6a8b344b78634bbc996e2feb911bd82e06dec4a
Reviewed-on: https://skia-review.googlesource.com/99220
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/gl/GrGLCaps.cpp')
-rw-r--r-- | src/gpu/gl/GrGLCaps.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp index 6cacb1af9a..d6f4ff61ae 100644 --- a/src/gpu/gl/GrGLCaps.cpp +++ b/src/gpu/gl/GrGLCaps.cpp @@ -2374,7 +2374,8 @@ void GrGLCaps::applyDriverCorrectnessWorkarounds(const GrGLContextInfo& ctxInfo, // Non-coherent advanced blend has an issue on NVIDIA pre 337.00. if (kNVIDIA_GrGLDriver == ctxInfo.driver() && - ctxInfo.driverVersion() < GR_GL_DRIVER_VER(337,00)) { + ctxInfo.driverVersion() < GR_GL_DRIVER_VER(337,00) && + kAdvanced_BlendEquationSupport == fBlendEquationSupport) { fBlendEquationSupport = kBasic_BlendEquationSupport; shaderCaps->fAdvBlendEqInteraction = GrShaderCaps::kNotSupported_AdvBlendEqInteraction; } |