fix(quickemu): detect GLSL version and enable GL accordingly. close #920

This commit is contained in:
Martin Wimpress 2024-05-10 01:45:52 +01:00 committed by Martin Wimpress
parent 637f6a9652
commit 16e8115e77
4 changed files with 10 additions and 1 deletions

1
debian/control vendored
View File

@ -17,6 +17,7 @@ Depends:
curl,
genisoimage,
jq,
mesa-utils,
pciutils
procps,
python3-minimal,

View File

@ -3,6 +3,7 @@
cdrtools,
curl,
git,
glxinfo
gnugrep,
gnused,
jq,
@ -29,6 +30,7 @@ mkShell {
cdrtools
curl
git
glxinfo
gnugrep
gnused
jq

View File

@ -6,6 +6,7 @@
, testers
, cdrtools
, curl
, glxinfo
, gnugrep
, gnused
, jq
@ -30,6 +31,7 @@ let
runtimePaths = [
cdrtools
curl
glxinfo
gnugrep
gnused
jq

View File

@ -1872,7 +1872,11 @@ if [ -n "${VM}" ] && [ -e "${VM}" ]; then
# Set the default 3D acceleration.
if [ -z "${gl}" ]; then
gl="on"
GLSL_VER=$(glxinfo | grep "OpenGL ES GLSL" | awk '{print $NF}')
case ${GLSL_VER} in
1*|2*) gl="off";;
*) gl="on";;
esac
fi
if [ -z "${PUBLIC}" ]; then