summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremyRand <biolizard89@gmail.com>2019-08-15 21:04:29 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-01-09 00:31:26 +0100
commitd71d35a5a418d2f3b6be5de0da183911dc8b1320 (patch)
tree85897d26bef2590ef5678446ded5a6d180a326bb
parent84b6007249b5d43389d0f80297e70e09b41be8a0 (diff)
downloadframeworks_native-d71d35a5a418d2f3b6be5de0da183911dc8b1320.tar.gz
frameworks_native-d71d35a5a418d2f3b6be5de0da183911dc8b1320.tar.bz2
frameworks_native-d71d35a5a418d2f3b6be5de0da183911dc8b1320.zip
Fix some type fails in EGL renderer override
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--opengl/libs/EGL/Loader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/opengl/libs/EGL/Loader.cpp b/opengl/libs/EGL/Loader.cpp
index 7b216e1c9..3fc19fce5 100644
--- a/opengl/libs/EGL/Loader.cpp
+++ b/opengl/libs/EGL/Loader.cpp
@@ -141,7 +141,7 @@ static char const * getProcessCmdline() {
*
* where %s is determined at runtime to be GLES, EGL, GLESv1_CM, or GLESv2.
*/
-static char* getOverridePath(void) {
+static const char* getOverridePath(void) {
// only really useful if ro.zygote.disable_gl_preload is enabled
// otherwise overrides only happen once, to zygote
if (!property_get_bool("ro.zygote.disable_gl_preload", 0)) {
@@ -341,7 +341,7 @@ void *Loader::load_driver(const char* kind,
String8 result;
// check for overrides first
- char* overridePath = getOverridePath();
+ const char* overridePath = getOverridePath();
if (overridePath) {
result.setTo(overridePath);
return result;