Index: ui/gl/gl_context_egl.cc |
diff --git a/ui/gl/gl_context_egl.cc b/ui/gl/gl_context_egl.cc |
index 6af5611d08ffee62bc4e5fe8e1bd08567e12b877..b1ea4e6a77040716cc441e2287edb1267613fd76 100644 |
--- a/ui/gl/gl_context_egl.cc |
+++ b/ui/gl/gl_context_egl.cc |
@@ -52,9 +52,9 @@ bool GLContextEGL::Initialize( |
} |
EGLint context_client_version = 2; |
- if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kEnableUnsafeES3APIs) && |
- (config_renderable_type & EGL_OPENGL_ES3_BIT) != 0) { |
+ if ((config_renderable_type & EGL_OPENGL_ES3_BIT) != 0 && |
+ !base::CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kDisableES3GLContext)) { |
context_client_version = 3; |
} |
@@ -86,7 +86,6 @@ bool GLContextEGL::Initialize( |
return false; |
} |
- |
context_ = eglCreateContext( |
display_, |
config_, |