Compare commits

...

4 commits

Author SHA1 Message Date
Jools Wills 08ba83c33b
Merge d037d02680 into 6d458aafac 2024-05-08 13:44:56 -07:00
Jools Wills 6d458aafac
Merge pull request #3916 from theofficialgman/master
emulationstation: fix OpenGL version check
2024-05-08 20:40:18 +01:00
theofficialgman a9bdf98195 emulationstation: fix OpenGL version check 2024-05-08 15:28:33 -04:00
Jools Wills d037d02680 sdl2 - update to 2.28.5 2024-01-28 18:57:50 +00:00
2 changed files with 4 additions and 1 deletions

View file

@ -173,7 +173,10 @@ function build_emulationstation() {
compareVersions $gles_ver lt 2.0 && params+=(-DUSE_GLES1=On)
else
params+=(-DGL=On)
# mesa specific check of OpenGL version
local gl_ver=$(sudo -u $user glxinfo -B | grep -oP 'Max compat profile version:\s\K.*')
# generic fallback check of OpenGL version
[[ -z "$gl_ver" ]] && gl_ver=$(sudo -u $user glxinfo -B | grep -oP "OpenGL version string: \K[^ ]+")
compareVersions $gl_ver gt 2.0 && params+=(-DUSE_GL21=On)
fi
elif isPlatform "gles"; then

View file

@ -17,7 +17,7 @@ rp_module_flags=""
function get_ver_sdl2() {
if [[ "$__os_debian_ver" -ge 11 ]]; then
echo "2.26.3"
echo "2.28.5"
else
echo "2.0.10"
fi