aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLCaps.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-05-10 09:05:06 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-10 09:05:06 -0700
commit44d427e048b2e290e086dc2c9f9227818388ef17 (patch)
tree7e50e783a83b6a0b51387fd09cd18d3d6dfe7884 /src/gpu/gl/GrGLCaps.cpp
parent622c8d5de12f264e496e8d4664a2eea9333922d0 (diff)
Only enable SRGB write control on desktop GL when SRGB is supported.
Diffstat (limited to 'src/gpu/gl/GrGLCaps.cpp')
-rw-r--r--src/gpu/gl/GrGLCaps.cpp4
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() &&