diff options
author | jiesun@google.com <jiesun@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-01 20:30:13 +0000 |
---|---|---|
committer | jiesun@google.com <jiesun@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-01 20:30:13 +0000 |
commit | 1a90589b00d23a2a42411159803649a290732058 (patch) | |
tree | 13b43cbb0053d687509ebc8e558548552a886a5a /media | |
parent | 3dd6f5e0807447194b12c7adc9a730d81738a0a6 (diff) | |
download | chromium_src-1a90589b00d23a2a42411159803649a290732058.zip chromium_src-1a90589b00d23a2a42411159803649a290732058.tar.gz chromium_src-1a90589b00d23a2a42411159803649a290732058.tar.bz2 |
make opengles 2.0 works
BUG=None
TEST=NVIDIA
Review URL: http://codereview.chromium.org/2455003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48651 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r-- | media/tools/player_x11/gles_video_renderer.cc | 4 |
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_); |