Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Unified Diff: core/cross/gles2/renderer_gles2.cc

Issue 3050038: o3d: create a gles v2 context for the native gles2 backend (Closed)
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698