diff options
author | 2016-05-10 09:05:06 -0700 | |
---|---|---|
committer | 2016-05-10 09:05:06 -0700 | |
commit | 44d427e048b2e290e086dc2c9f9227818388ef17 (patch) | |
tree | 7e50e783a83b6a0b51387fd09cd18d3d6dfe7884 /src/gpu/gl/GrGLCaps.cpp | |
parent | 622c8d5de12f264e496e8d4664a2eea9333922d0 (diff) |
Only enable SRGB write control on desktop GL when SRGB is supported.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1961273004
Review-Url: https://codereview.chromium.org/1961273004
Diffstat (limited to 'src/gpu/gl/GrGLCaps.cpp')
-rw-r--r-- | src/gpu/gl/GrGLCaps.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp index 9870a92c14..85be57a166 100644 --- a/src/gpu/gl/GrGLCaps.cpp +++ b/src/gpu/gl/GrGLCaps.cpp @@ -1468,7 +1468,9 @@ void GrGLCaps::initConfigTable(const GrGLContextInfo& ctxInfo, const GrGLInterfa } } // All the above srgb extensions support toggling srgb writes - fSRGBWriteControl = true; + if (fSRGBSupport) { + fSRGBWriteControl = true; + } } else { // See https://bug.skia.org/4148 for PowerVR issue. fSRGBSupport = kPowerVRRogue_GrGLRenderer != ctxInfo.renderer() && |