diff options
author | JeremyRand <biolizard89@gmail.com> | 2019-08-15 21:04:31 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-01-09 00:31:37 +0100 |
commit | 7a92f7cb588bcf2a214a6e0a2e4a641ed842eb95 (patch) | |
tree | 8aa0ac685ef92826ab37d9db3b6d10cd0cf3da5e | |
parent | 88d7e7ea9fefbd87ea06a857a0b5f9eaa1c3c499 (diff) | |
download | frameworks_native-7a92f7cb588bcf2a214a6e0a2e4a641ed842eb95.tar.gz frameworks_native-7a92f7cb588bcf2a214a6e0a2e4a641ed842eb95.tar.bz2 frameworks_native-7a92f7cb588bcf2a214a6e0a2e4a641ed842eb95.zip |
Fix checking of access() return value in EGL renderer override
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r-- | opengl/libs/EGL/Loader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opengl/libs/EGL/Loader.cpp b/opengl/libs/EGL/Loader.cpp index 0712031ae..b90c49166 100644 --- a/opengl/libs/EGL/Loader.cpp +++ b/opengl/libs/EGL/Loader.cpp @@ -157,7 +157,7 @@ static const char* getOverridePath(void) { ALOGD("checking %s for override...", data_override_path.string()); - if (access( data_override_path.string(), R_OK ) ) { + if (!access( data_override_path.string(), R_OK ) ) { ALOGD("override found: %s", data_override_path.string()); return data_override_path.string(); } @@ -169,7 +169,7 @@ static const char* getOverridePath(void) { ALOGD("checking %s for override...", system_override_path.string()); - if (access( system_override_path.string(), R_OK ) ) { + if (!access( system_override_path.string(), R_OK ) ) { ALOGD("override found: %s", system_override_path.string()); return system_override_path.string(); } |