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

Commit d597cd5a authored by Gabriele M's avatar Gabriele M
Browse files

Zygote: Fix GL preload property evaluation

Commit b3a14176 ("Zygote: Restore GL preload")
should allow to disable GL preloading on devices with no updatable
drivers support (i.e. empty ro.gfx.driver.0). However, the property
ro.zygote.disable_gl_preload has no effect on a device with no
updatable driver support and it does on a device with updatable
driver support, which is the opposite of what we want.

Change-Id: I3df6c929a465441632ca1540dbb575daa174b0fb
parent 33e31be6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -245,8 +245,8 @@ public class ZygoteInit {

    private static void preloadOpenGL() {
        String driverPackageName = SystemProperties.get(PROPERTY_GFX_DRIVER);
        if (!SystemProperties.getBoolean(PROPERTY_DISABLE_OPENGL_PRELOADING, false) ||
                driverPackageName == null || driverPackageName.isEmpty()) {
        if (!SystemProperties.getBoolean(PROPERTY_DISABLE_OPENGL_PRELOADING, false) &&
                (driverPackageName == null || driverPackageName.isEmpty())) {
            EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY);
        }
    }