Loading EGL libs with version in soname, fix proposal for crbug.com/112592
Contributed by [email protected]
BUG=112592
TEST=
Review URL: http://codereview.chromium.org/9362011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121069 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ui/gfx/gl/gl_implementation_linux.cc b/ui/gfx/gl/gl_implementation_linux.cc
index 5f96ed158..b03d94a 100644
--- a/ui/gfx/gl/gl_implementation_linux.cc
+++ b/ui/gfx/gl/gl_implementation_linux.cc
@@ -141,10 +141,10 @@
}
#endif // !defined(USE_WAYLAND)
case kGLImplementationEGLGLES2: {
- base::NativeLibrary gles_library = LoadLibrary("libGLESv2.so");
+ base::NativeLibrary gles_library = LoadLibrary("libGLESv2.so.2");
if (!gles_library)
return false;
- base::NativeLibrary egl_library = LoadLibrary("libEGL.so");
+ base::NativeLibrary egl_library = LoadLibrary("libEGL.so.1");
if (!egl_library) {
base::UnloadNativeLibrary(gles_library);
return false;