[Replicant] [PATCH 3/7] Fix some type fails in EGL renderer override

Andrés Domínguez andresdju at gmail.com
Thu Aug 15 19:04:29 UTC 2019


From: JeremyRand <biolizard89 at gmail.com>

---
 opengl/libs/EGL/Loader.cpp | 4 ++--
 1 file 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;
-- 
2.23.0.rc1



More information about the Replicant mailing list