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

Unified Diff: ui/gl/gl_context_egl.cc

Issue 221433004: gpu: Bind dummy GL API when no context is current (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
Index: ui/gl/gl_context_egl.cc
diff --git a/ui/gl/gl_context_egl.cc b/ui/gl/gl_context_egl.cc
index 856d84c89cb572265ed711cde20c8c69bdeba04c..16905d68187e4730a2ba30a51725948a7c857e10 100644
--- a/ui/gl/gl_context_egl.cc
+++ b/ui/gl/gl_context_egl.cc
@@ -115,8 +115,9 @@ bool GLContextEGL::MakeCurrent(GLSurface* surface) {
SetRealGLApi();
SetCurrent(surface);
+ ScopedReleaseCurrent release_current(this, surface);
+
if (!InitializeDynamicBindings()) {
- ReleaseCurrent(surface);
return false;
}
@@ -125,6 +126,7 @@ bool GLContextEGL::MakeCurrent(GLSurface* surface) {
return false;
}
+ release_current.Release();
return true;
}
« ui/gl/gl_context.h ('K') | « ui/gl/gl_context_cgl.cc ('k') | ui/gl/gl_context_glx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698