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

Commit b73396b3 authored by bohu's avatar bohu Committed by Bo Hu
Browse files

Emulator: Replace ro.kernel.qemu.gles with qemu.gles

ro.kernel.qemu.gles is passed in by emulator and is read only;
the actual gles version can only be decided at egl library
loading time, and qemu.gles value will be set there and be
queried here.

bug: 27273457
Change-Id: I5ba228a2fa6649786dc87da09367d368e9e6d1e8
parent 4f210363
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -160,7 +160,7 @@ static jboolean android_view_DisplayListCanvas_isAvailable(JNIEnv* env, jobject
    }
    // 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");
    property_get("qemu.gles", prop, "0");
    return atoi(prop) > 0 ? JNI_TRUE : JNI_FALSE;
}