| Index: ui/gfx/gl/gl_context.cc
|
| diff --git a/ui/gfx/gl/gl_context.cc b/ui/gfx/gl/gl_context.cc
|
| index 6c25052e1b9de1fa21e6d2b9bf118aa63bcef48a..6053bdb335ba5f973e60a20c7a6171c825baa779 100644
|
| --- a/ui/gfx/gl/gl_context.cc
|
| +++ b/ui/gfx/gl/gl_context.cc
|
| @@ -81,4 +81,15 @@ bool GLContext::WasAllocatedUsingARBRobustness() {
|
| return false;
|
| }
|
|
|
| +bool GLContext::InitializeExtensionBindings() {
|
| + DCHECK(IsCurrent(NULL));
|
| + static bool initialized = false;
|
| + if (initialized)
|
| + return initialized;
|
| + initialized = InitializeGLExtensionBindings(GetGLImplementation(), this);
|
| + if (!initialized)
|
| + LOG(ERROR) << "Could not initialize extension bindings.";
|
| + return initialized;
|
| +}
|
| +
|
| } // namespace gfx
|
|
|