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

Commit a18de73e authored by Nicolas Capens's avatar Nicolas Capens Committed by Android (Google) Code Review
Browse files

Merge "Assume OpenGL ES 2.0 support for qemu.gles > 0"

parents 1d17ee04 ac465cef
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -151,10 +151,10 @@ static jboolean android_view_DisplayListCanvas_isAvailable(JNIEnv* env, jobject
        // not in the emulator
        return JNI_TRUE;
    }
    // In the emulator this property will be set to 1 when hardware GLES is
    // In the emulator this property will be set > 0 when OpenGL ES 2.0 is
    // enabled, 0 otherwise. On old emulator versions it will be undefined.
    property_get("ro.kernel.qemu.gles", prop, "0");
    return atoi(prop) == 1 ? JNI_TRUE : JNI_FALSE;
    return atoi(prop) > 0 ? JNI_TRUE : JNI_FALSE;
}

// ----------------------------------------------------------------------------