| Index: src/gpu/gl/GrGLCaps.cpp
|
| diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
|
| index 85be57a166f67f07a1c229e34fa6cc3e267f67b8..6aa94dee0d13bf71c395aded2ff0399827a7a7af 100644
|
| --- a/src/gpu/gl/GrGLCaps.cpp
|
| +++ b/src/gpu/gl/GrGLCaps.cpp
|
| @@ -1477,7 +1477,9 @@ void GrGLCaps::initConfigTable(const GrGLContextInfo& ctxInfo, const GrGLInterfa
|
| (ctxInfo.version() >= GR_GL_VER(3,0) || ctxInfo.hasExtension("GL_EXT_sRGB"));
|
| // ES through 3.1 requires EXT_srgb_write_control to support toggling
|
| // sRGB writing for destinations.
|
| - fSRGBWriteControl = ctxInfo.hasExtension("GL_EXT_sRGB_write_control");
|
| + // See https://bug.skia.org/5329 for Adreno4xx issue.
|
| + fSRGBWriteControl = kAdreno4xx_GrGLRenderer != ctxInfo.renderer() &&
|
| + ctxInfo.hasExtension("GL_EXT_sRGB_write_control");
|
| }
|
| if (!ctxInfo.hasExtension("GL_EXT_texture_sRGB_decode")) {
|
| // To support "legacy" L32 mode, we require the ability to turn off sRGB decode:
|
|
|