Index: ui/gl/gl_context.cc |
diff --git a/ui/gl/gl_context.cc b/ui/gl/gl_context.cc |
index 42dadd2a69d35357487f1ea2a64045378e9602ab..ada2127d5075d538b295dd87537076b4b2a5cd96 100644 |
--- a/ui/gl/gl_context.cc |
+++ b/ui/gl/gl_context.cc |
@@ -206,7 +206,10 @@ |
bool GLContext::InitializeDynamicBindings() { |
DCHECK(IsCurrent(nullptr)); |
- bool initialized = InitializeDynamicGLBindings(GetGLImplementation(), this); |
+ static bool initialized = false; |
+ if (initialized) |
+ return initialized; |
+ initialized = InitializeDynamicGLBindings(GetGLImplementation(), this); |
if (!initialized) |
LOG(ERROR) << "Could not initialize dynamic bindings."; |
return initialized; |