| Index: core/cross/gles2/renderer_gles2.cc
|
| diff --git a/core/cross/gles2/renderer_gles2.cc b/core/cross/gles2/renderer_gles2.cc
|
| index 71d5c725e343310379ce48d1cde93adadb00a06b..76a2b7f55ad2e00ea9055f8b94057e8de2298a8a 100644
|
| --- a/core/cross/gles2/renderer_gles2.cc
|
| +++ b/core/cross/gles2/renderer_gles2.cc
|
| @@ -1205,7 +1205,13 @@ Renderer::InitStatus RendererGLES2::InitPlatformSpecific(
|
| return INITIALIZATION_ERROR;
|
| }
|
|
|
| - EGLContext egl_context = eglCreateContext(egl_display, config, NULL, NULL);
|
| + static const EGLint egl_context_attributes[] = {
|
| + EGL_CONTEXT_CLIENT_VERSION, 2,
|
| + EGL_NONE
|
| + };
|
| +
|
| + EGLContext egl_context = eglCreateContext(egl_display, config, NULL,
|
| + egl_context_attributes);
|
| if (!egl_context) {
|
| DLOG(ERROR) << "eglCreateContext failed.";
|
| eglDestroySurface(egl_display, egl_surface);
|
|
|