| Index: ui/gl/init/gl_factory.cc
|
| diff --git a/ui/gl/init/gl_factory.cc b/ui/gl/init/gl_factory.cc
|
| index 3c17fc777bfe178be221a9c13d742f99d6823e19..0cade4082c907f5d50da62f72316cb234ccef29c 100644
|
| --- a/ui/gl/init/gl_factory.cc
|
| +++ b/ui/gl/init/gl_factory.cc
|
| @@ -64,12 +64,12 @@ bool InitializeGLOneOffImplementation(GLImplementation impl,
|
| bool initialized =
|
| InitializeStaticGLBindings(impl) && InitializeGLOneOffPlatform();
|
| if (!initialized && fallback_to_osmesa) {
|
| - ClearGLBindings();
|
| + ShutdownGL();
|
| initialized = InitializeStaticGLBindings(kGLImplementationOSMesaGL) &&
|
| InitializeGLOneOffPlatform();
|
| }
|
| if (!initialized)
|
| - ClearGLBindings();
|
| + ShutdownGL();
|
|
|
| if (initialized) {
|
| DVLOG(1) << "Using " << GetGLImplementationName(GetGLImplementation())
|
| @@ -82,8 +82,8 @@ bool InitializeGLOneOffImplementation(GLImplementation impl,
|
| return initialized;
|
| }
|
|
|
| -void ClearGLBindings() {
|
| - ClearGLBindingsPlatform();
|
| +void ShutdownGL() {
|
| + ShutdownGLPlatform();
|
|
|
| SetGLImplementation(kGLImplementationNone);
|
| UnloadGLNativeLibraries();
|
|
|