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

Unified Diff: ui/gl/gl_context_egl.cc

Issue 1657003003: Use eglBindAPI to choose the correct API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix whitespace Created 4 years, 10 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: ui/gl/gl_context_egl.cc
diff --git a/ui/gl/gl_context_egl.cc b/ui/gl/gl_context_egl.cc
index 8a9e4e4cb2ff7828dd9d5f595a8c48412be5dc1c..569c2cca118d19b49ed9a38b1db1358b09c61001 100644
--- a/ui/gl/gl_context_egl.cc
+++ b/ui/gl/gl_context_egl.cc
@@ -70,6 +70,13 @@ bool GLContextEGL::Initialize(
context_attributes = kContextAttributes;
}
+ if (!eglBindAPI(EGL_OPENGL_ES_API)) {
+ LOG(ERROR) << "eglBindApi failed with error "
+ << GetLastEGLErrorString();
+ return false;
+ }
+
+
context_ = eglCreateContext(
display_,
config_,
« 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