Index: ui/gfx/gl/gl_implementation_mac.cc |
diff --git a/ui/gfx/gl/gl_implementation_mac.cc b/ui/gfx/gl/gl_implementation_mac.cc |
index a8b3ddd7f61c53629f7939048666e1e648828218..351bc11c2ac22f3987e03b96ab46f70a0bc584c9 100644 |
--- a/ui/gfx/gl/gl_implementation_mac.cc |
+++ b/ui/gfx/gl/gl_implementation_mac.cc |
@@ -31,6 +31,10 @@ bool InitializeGLBindings(GLImplementation implementation) { |
return false; |
} |
+ // osmesa.so is located in: |
+ // Contents/Versions/<vers>/Chromium Framework.framework/Libraries |
+ module_path = module_path.DirName().Append("Libraries"); |
+ |
// When using OSMesa, just use OSMesaGetProcAddress to find entry points. |
base::NativeLibrary library = base::LoadNativeLibrary( |
module_path.Append("osmesa.so"), NULL); |