summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
Diffstat (limited to 'media')
-rw-r--r--media/tools/player_x11/gles_video_renderer.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/media/tools/player_x11/gles_video_renderer.cc b/media/tools/player_x11/gles_video_renderer.cc
index 31847820..3571f24 100644
--- a/media/tools/player_x11/gles_video_renderer.cc
+++ b/media/tools/player_x11/gles_video_renderer.cc
@@ -262,7 +262,9 @@ bool GlesVideoRenderer::InitializeGles() {
return false;
}
- egl_context_ = eglCreateContext(egl_display_, config, NULL, NULL);
+ EGLint context_attribs[] = {EGL_CONTEXT_CLIENT_VERSION, 2, EGL_NONE};
+ egl_context_ = eglCreateContext(egl_display_, config,
+ EGL_NO_CONTEXT, context_attribs);
if (!egl_context_) {
DLOG(ERROR) << "eglCreateContext failed.";
eglDestroySurface(egl_display_, egl_surface_);