This commit is contained in:
theofficialgman 2024-05-06 14:01:35 +01:00 committed by GitHub
commit 6b8caf8db1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 -m1 'OpenGL version string:' | awk -F: '{print $2}' | awk '{print $1}')
compareVersions $gl_ver gt 2.0 && params+=(-DUSE_GL21=On)
fi
elif isPlatform "gles"; then