Skip to content

Commit

Permalink
fix(quickemu): detect GLSL version and enable GL accordingly. close #920
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed May 10, 2024
1 parent 637f6a9 commit 16e8115
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Depends:
curl,
genisoimage,
jq,
mesa-utils,
pciutils
procps,
python3-minimal,
Expand Down
2 changes: 2 additions & 0 deletions devshell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
cdrtools,
curl,
git,
glxinfo
gnugrep,
gnused,
jq,
Expand All @@ -29,6 +30,7 @@ mkShell {
cdrtools
curl
git
glxinfo
gnugrep
gnused
jq
Expand Down
2 changes: 2 additions & 0 deletions package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
, testers
, cdrtools
, curl
, glxinfo
, gnugrep
, gnused
, jq
Expand All @@ -30,6 +31,7 @@ let
runtimePaths = [
cdrtools
curl
glxinfo
gnugrep
gnused
jq
Expand Down
6 changes: 5 additions & 1 deletion quickemu
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16e8115

Please sign in to comment.