| Index: src/gpu/gl/GrGLGpu.cpp
|
| diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp
|
| index 8ee32ff1692a076cabb9531c30879b9ab57643b9..d3f13d061c81193fb123a0bdeb1174319e3bf7bc 100644
|
| --- a/src/gpu/gl/GrGLGpu.cpp
|
| +++ b/src/gpu/gl/GrGLGpu.cpp
|
| @@ -3243,7 +3243,7 @@
|
| newTexParams.fMinFilter = glMinFilterModes[filterMode];
|
| newTexParams.fMagFilter = glMagFilterModes[filterMode];
|
|
|
| - if (this->glCaps().srgbDecodeDisableSupport() && GrPixelConfigIsSRGB(texture->config())) {
|
| + if (GrPixelConfigIsSRGB(texture->config())) {
|
| newTexParams.fSRGBDecode = allowSRGBInputs ? GR_GL_DECODE_EXT : GR_GL_SKIP_DECODE_EXT;
|
| if (setAll || newTexParams.fSRGBDecode != oldTexParams.fSRGBDecode) {
|
| this->setTextureUnit(unitIdx);
|
| @@ -3419,7 +3419,7 @@
|
|
|
| // Configure sRGB decode, if necessary. This state is the only thing needed for the driver
|
| // call (glGenerateMipmap) to work correctly. Our manual method dirties other state, too.
|
| - if (this->glCaps().srgbDecodeDisableSupport() && GrPixelConfigIsSRGB(texture->config())) {
|
| + if (GrPixelConfigIsSRGB(texture->config())) {
|
| GL_CALL(TexParameteri(target, GR_GL_TEXTURE_SRGB_DECODE_EXT,
|
| allowSRGBInputs ? GR_GL_DECODE_EXT : GR_GL_SKIP_DECODE_EXT));
|
| }
|
|
|