Chromium Code Reviews| 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 affed33b0e82a8399fc076eb5e414d73e347da4a..290410cdfaecf3eb31bc86f5bb62c298c512f9a9 100644 |
| --- a/gpu/command_buffer/service/gles2_cmd_decoder.cc |
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
| @@ -3034,6 +3034,10 @@ bool GLES2DecoderImpl::Initialize(const scoped_refptr<gfx::GLSurface>& surface, |
| glEnable(GL_TEXTURE_CUBE_MAP_SEAMLESS); |
| } |
| + if (feature_info_->gl_version_info().IsAtLeastGL(3, 2)) { |
|
Ken Russell (switch to Gerrit)
2016/04/14 00:18:23
Could you add a comment here describing the effect
Zhenyao Mo
2016/04/14 00:26:29
Done.
|
| + glEnable(GL_FRAMEBUFFER_SRGB); |
| + } |
| + |
| has_robustness_extension_ = |
| context->HasExtension("GL_ARB_robustness") || |
| context->HasExtension("GL_KHR_robustness") || |