egl loader: check for softwaregl
Change-Id: I52d34d33ef2451019740735316b519d939c7125c Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
This commit is contained in:
parent
cbd3e07921
commit
2a9abccdfb
@ -86,7 +86,12 @@ checkGlesEmulationStatus(void)
|
|||||||
char prop[PROPERTY_VALUE_MAX];
|
char prop[PROPERTY_VALUE_MAX];
|
||||||
int result = -1;
|
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");
|
property_get("ro.kernel.qemu",prop,"0");
|
||||||
if (atoi(prop) != 1)
|
if (atoi(prop) != 1)
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user