Index: src/gpu/gl/GrGLGpu.cpp |
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp |
index 5da585fb3f4a001de39ee93c4cd7d1d856234f25..4820ca8e16736a0d72e160c9e2f860120ff4d8a3 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)); |
} |