From 4aaa96009728c3209cdcfa9278d4e0fef100fdb3 Mon Sep 17 00:00:00 2001 From: Jesse Hall Date: Tue, 29 Aug 2017 16:33:54 -0700 Subject: Fix monolithic, un-suffixed GLES driver search Bug: 65160755 Test: mmm frameworks/native/opengl/libs Change-Id: I4bb0d1f15101fa770750154fc832bd341d4c31da --- opengl/libs/EGL/Loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opengl') 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; -- cgit v1.2.3-59-g8ed1b