From: Chih-Wei Huang Date: Wed, 27 Nov 2019 13:57:19 +0000 (+0800) Subject: init.sh: fallback to SwiftShader if necessary X-Git-Url: http://git.osdn.net/view?p=android-x86%2Fdevice-generic-common.git;a=commitdiff_plain;h=81c061045c0bfff55a56bdd6b239ff87d7ca4fa9 init.sh: fallback to SwiftShader if necessary Use SwiftShader if HWACCEL=0 or there is no supported GPU. --- diff --git a/init.sh b/init.sh index f759a1c..be676c3 100644 --- a/init.sh +++ b/init.sh @@ -198,6 +198,7 @@ function init_hal_gralloc() ;; esac + [ -z "$(getprop ro.hardware.gralloc)" ] && set_property ro.hardware.egl swiftshader [ -n "$DEBUG" ] && set_property debug.egl.trace error }