Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45ccd13d authored by Rob VanReenen's avatar Rob VanReenen
Browse files

Fix updatable driver loading issue with EGL.

getDriverNamespace() returns non-NULL if an updatable driver is intended to be used.
Need to throw error only if attempt_to_load_updated_driver() failed.

Bug: 349287141
Change-Id: I4310618c7a031a0c471aea5a6ab00362acff0983
parent 9d04fe2c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -262,7 +262,7 @@ void* Loader::open(egl_connection_t* cnx) {
        hnd = attempt_to_load_updated_driver(cnx);

        // If updated driver apk is set but fail to load, abort here.
        LOG_ALWAYS_FATAL_IF(android::GraphicsEnv::getInstance().getDriverNamespace(),
        LOG_ALWAYS_FATAL_IF(android::GraphicsEnv::getInstance().getDriverNamespace() && !hnd,
                            "couldn't find an OpenGL ES implementation from %s",
                            android::GraphicsEnv::getInstance().getDriverPath().c_str());
    }