| Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| index 1dec5cf2002c7dfcdf9db9099edbdfd5c3b84b1b..e8d216be2ca9430ac46e5481ac0b023ad3fa6b34 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| @@ -2938,6 +2938,14 @@ bool GLES2DecoderImpl::Initialize(
|
| glEnable(GL_POINT_SPRITE);
|
| }
|
|
|
| + // Desktop GL (including the core profile) does not enable this context state
|
| + // by default, but OpenGL ES (including when the EXT_sRGB_write_control
|
| + // extension is present) enable it by default.
|
| + if (!feature_info_->gl_version_info().is_es &&
|
| + feature_info_->feature_flags().ext_framebuffer_srgb) {
|
| + glEnable(GL_FRAMEBUFFER_SRGB);
|
| + }
|
| +
|
| has_robustness_extension_ =
|
| context->HasExtension("GL_ARB_robustness") ||
|
| context->HasExtension("GL_KHR_robustness") ||
|
|
|