Index: gpu/command_buffer/service/feature_info.cc |
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc |
index 4e5aefe46e4aba8aacafa2e6e8a804ddc8ec410e..5a548d0e8f151cf15bf35734c0df79cc1662b560 100644 |
--- a/gpu/command_buffer/service/feature_info.cc |
+++ b/gpu/command_buffer/service/feature_info.cc |
@@ -501,9 +501,10 @@ void FeatureInfo::InitializeFeatures() { |
// sized formats GL_SRGB8 and GL_SRGB8_ALPHA8. Also, SRGB_EXT isn't a valid |
// <format> in this case. So, even with GLES3 explicitly check for |
// GL_EXT_sRGB. |
- if (((gl_version_info_->is_es3 || |
- extensions.Contains("GL_OES_rgb8_rgba8")) && |
- extensions.Contains("GL_EXT_sRGB")) || gfx::HasDesktopGLFeatures()) { |
+ if (!workarounds_.disable_ext_srgb && |
+ (((gl_version_info_->is_es3 || |
+ extensions.Contains("GL_OES_rgb8_rgba8")) && |
+ extensions.Contains("GL_EXT_sRGB")) || gfx::HasDesktopGLFeatures())) { |
AddExtensionString("GL_EXT_sRGB"); |
validators_.texture_internal_format.AddValue(GL_SRGB_EXT); |
validators_.texture_internal_format.AddValue(GL_SRGB_ALPHA_EXT); |