| Index: src/gpu/gl/GrGLGpu.cpp
|
| diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp
|
| index 027d9527c09bd7800a725badd67325cefa254a21..40d0e488d5cb1528217a30646ae50889fc35eae5 100644
|
| --- a/src/gpu/gl/GrGLGpu.cpp
|
| +++ b/src/gpu/gl/GrGLGpu.cpp
|
| @@ -2639,7 +2639,7 @@ void GrGLGpu::flushRenderTarget(GrGLRenderTarget* target, const SkIRect* bounds,
|
| this->flushViewport(target->getViewport());
|
| }
|
|
|
| - if (this->glCaps().srgbSupport()) {
|
| + if (this->glCaps().srgbWriteControl()) {
|
| bool enableSRGBWrite = GrPixelConfigIsSRGB(target->config()) && !disableSRGB;
|
| if (enableSRGBWrite && kYes_TriState != fHWSRGBFramebuffer) {
|
| GL_CALL(Enable(GR_GL_FRAMEBUFFER_SRGB));
|
|
|