diff options
author | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2015-12-21 14:26:28 +0100 |
---|---|---|
committer | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2015-12-21 14:26:28 +0100 |
commit | 2a9abccdfb8a52b0ff684a5cf04d200cdeda9982 (patch) | |
tree | 9ad39e92a925486cacfd5bb20cee6922f2d682ec | |
parent | cbd3e07921a7e7525d88c7606b1b8aeb32441804 (diff) | |
download | frameworks_native-2a9abccdfb8a52b0ff684a5cf04d200cdeda9982.zip frameworks_native-2a9abccdfb8a52b0ff684a5cf04d200cdeda9982.tar.gz frameworks_native-2a9abccdfb8a52b0ff684a5cf04d200cdeda9982.tar.bz2 |
egl loader: check for softwaregl
Change-Id: I52d34d33ef2451019740735316b519d939c7125c
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
-rw-r--r-- | opengl/libs/EGL/Loader.cpp | 7 |
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; |