summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jesse Hall <jessehall@google.com> 2017-08-29 16:33:54 -0700
committer Jesse Hall <jessehall@google.com> 2017-08-29 16:38:24 -0700
commit4aaa96009728c3209cdcfa9278d4e0fef100fdb3 (patch)
tree39655ab55f34bebac4a368812668877875c0cdd6
parent74a871ae12c00b10daffca7621922ae8f55a209c (diff)
Fix monolithic, un-suffixed GLES driver search
Bug: 65160755 Test: mmm frameworks/native/opengl/libs Change-Id: I4bb0d1f15101fa770750154fc832bd341d4c31da
-rw-r--r--opengl/libs/EGL/Loader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/libs/EGL/Loader.cpp b/opengl/libs/EGL/Loader.cpp
index 823b502ad8..facc92ec44 100644
--- a/opengl/libs/EGL/Loader.cpp
+++ b/opengl/libs/EGL/Loader.cpp
@@ -387,7 +387,7 @@ static void* load_system_driver(const char* kind) {
static bool find(std::string& result,
const std::string& pattern, const char* const search, bool exact) {
if (exact) {
- std::string absolutePath = std::string(search) + "/" + pattern;
+ std::string absolutePath = std::string(search) + "/" + pattern + ".so";
if (!access(absolutePath.c_str(), R_OK)) {
result = absolutePath;
return true;