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, curl,
genisoimage, genisoimage,
jq, jq,
mesa-utils,
pciutils pciutils
procps, procps,
python3-minimal, python3-minimal,

View File

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

View File

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

View File

@ -1872,7 +1872,11 @@ if [ -n "${VM}" ] && [ -e "${VM}" ]; then
# Set the default 3D acceleration. # Set the default 3D acceleration.
if [ -z "${gl}" ]; then 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 fi
if [ -z "${PUBLIC}" ]; then if [ -z "${PUBLIC}" ]; then