We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 058f096 + 91dd246 commit 56c3671Copy full SHA for 56c3671
scriptmodules/supplementary/emulationstation.sh
@@ -167,8 +167,8 @@ function build_emulationstation() {
167
# force GLESv1 on videocore due to performance issue with GLESv2
168
isPlatform "videocore" && params+=(-DUSE_GLES1=On)
169
elif isPlatform "x11"; then
170
- local gl_ver=$(sudo -u $user glxinfo | grep -oP "OpenGL version string: \K(\d+)")
171
- [[ "$gl_ver" -gt 1 ]] && params+=(-DUSE_GL21=On)
+ local gl_ver=$(sudo -u $user glxinfo -B | grep -oP 'Max compat profile version:\s\K.*')
+ compareVersions $gl_ver gt 2.0 && params+=(-DUSE_GL21=On)
172
fi
173
if isPlatform "dispmanx"; then
174
params+=(-DOMX=On)
0 commit comments