| Index: ui/gl/gl_implementation_win.cc
|
| diff --git a/ui/gl/gl_implementation_win.cc b/ui/gl/gl_implementation_win.cc
|
| index 40cbdde91319156e7ae91e42f19ffc51520d17e8..6a4e61298a71ea231190462ecf669f643df0d7f7 100644
|
| --- a/ui/gl/gl_implementation_win.cc
|
| +++ b/ui/gl/gl_implementation_win.cc
|
| @@ -90,16 +90,17 @@ bool InitializeStaticGLBindings(GLImplementation implementation) {
|
| switch (implementation) {
|
| case kGLImplementationOSMesaGL: {
|
| base::FilePath module_path;
|
| - if (!PathService::Get(base::DIR_MODULE, &module_path)) {
|
| - LOG(ERROR) << "PathService::Get failed.";
|
| - return false;
|
| - }
|
| -
|
| + PathService::Get(base::DIR_MODULE, &module_path);
|
| base::NativeLibrary library = base::LoadNativeLibrary(
|
| module_path.Append(L"osmesa.dll"), NULL);
|
| if (!library) {
|
| - DVLOG(1) << "osmesa.dll not found";
|
| - return false;
|
| + PathService::Get(base::DIR_EXE, &module_path);
|
| + library = base::LoadNativeLibrary(
|
| + module_path.Append(L"osmesa.dll"), NULL);
|
| + if (!library) {
|
| + DVLOG(1) << "osmesa.dll not found";
|
| + return false;
|
| + }
|
| }
|
|
|
| GLGetProcAddressProc get_proc_address =
|
|
|