Loading core/jni/android_view_DisplayListCanvas.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -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; } // ---------------------------------------------------------------------------- Loading Loading
core/jni/android_view_DisplayListCanvas.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -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; } // ---------------------------------------------------------------------------- Loading