summaryrefslogtreecommitdiffstats
path: root/ui/gfx/gl/gl_context_egl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gfx/gl/gl_context_egl.cc')
-rw-r--r--ui/gfx/gl/gl_context_egl.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/gfx/gl/gl_context_egl.cc b/ui/gfx/gl/gl_context_egl.cc
index 6c69f79..d9b6950 100644
--- a/ui/gfx/gl/gl_context_egl.cc
+++ b/ui/gfx/gl/gl_context_egl.cc
@@ -96,6 +96,11 @@ bool GLContextEGL::MakeCurrent(GLSurface* surface) {
}
SetCurrent(this, surface);
+ if (!InitializeExtensionBindings()) {
+ ReleaseCurrent(surface);
+ return false;
+ }
+
if (!surface->OnMakeCurrent(this)) {
LOG(ERROR) << "Could not make current.";
return false;