Assume OpenGL ES 2.0 support for qemu.gles > 0

Bug 25435727

Change-Id: I1d11c2f03849f1244bdd83e47aa53776acfba6fd
This commit is contained in:
Nicolas Capens
2015-11-03 17:18:35 -05:00
parent 4d5bb87190
commit ac465cef41

View File

@@ -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;
}
// ----------------------------------------------------------------------------