From ac465cef41bbc618bc81bd331deb7c845af9b8dd Mon Sep 17 00:00:00 2001 From: Nicolas Capens Date: Tue, 3 Nov 2015 17:18:35 -0500 Subject: [PATCH] Assume OpenGL ES 2.0 support for qemu.gles > 0 Bug 25435727 Change-Id: I1d11c2f03849f1244bdd83e47aa53776acfba6fd --- core/jni/android_view_DisplayListCanvas.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/jni/android_view_DisplayListCanvas.cpp b/core/jni/android_view_DisplayListCanvas.cpp index b64acc32e6348..9b41eb3c659bf 100644 --- a/core/jni/android_view_DisplayListCanvas.cpp +++ b/core/jni/android_view_DisplayListCanvas.cpp @@ -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; } // ----------------------------------------------------------------------------