| Index: app/gfx/gl/gl_context_egl.cc
|
| ===================================================================
|
| --- app/gfx/gl/gl_context_egl.cc (revision 63908)
|
| +++ app/gfx/gl/gl_context_egl.cc (working copy)
|
| @@ -166,8 +166,12 @@
|
| return false;
|
| }
|
|
|
| - // Create a context.
|
| - context_ = eglCreateContext(g_display, g_config, NULL, NULL);
|
| + static const EGLint kContextAttributes[] = {
|
| + EGL_CONTEXT_CLIENT_VERSION, 2,
|
| + EGL_NONE
|
| + };
|
| +
|
| + context_ = eglCreateContext(g_display, g_config, NULL, kContextAttributes);
|
| if (!context_) {
|
| LOG(ERROR) << "eglCreateContext failed with error "
|
| << GetLastEGLErrorString();
|
|
|