summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--opengl/libs/EGL/Loader.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/opengl/libs/EGL/Loader.cpp b/opengl/libs/EGL/Loader.cpp
index 1fcc048..66b4c81 100644
--- a/opengl/libs/EGL/Loader.cpp
+++ b/opengl/libs/EGL/Loader.cpp
@@ -86,7 +86,12 @@ checkGlesEmulationStatus(void)
char prop[PROPERTY_VALUE_MAX];
int result = -1;
- /* First, check for qemu=1 */
+ /* Check first if the device does not support hardware rendering */
+ property_get("ro.softwaregl",prop,"0");
+ if(atoi(prop) == 1)
+ return 0;
+
+ /* Then, check for qemu=1 */
property_get("ro.kernel.qemu",prop,"0");
if (atoi(prop) != 1)
return -1;