Skip to content

Commit 56c3671

Browse files
authored
Merge pull request #3621 from gizmo98/emulationstation-GL2.1-fix
emulationstation: fix OpenGL version 2.1 check
2 parents 058f096 + 91dd246 commit 56c3671

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scriptmodules/supplementary/emulationstation.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ function build_emulationstation() {
167167
# force GLESv1 on videocore due to performance issue with GLESv2
168168
isPlatform "videocore" && params+=(-DUSE_GLES1=On)
169169
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)
170+
local gl_ver=$(sudo -u $user glxinfo -B | grep -oP 'Max compat profile version:\s\K.*')
171+
compareVersions $gl_ver gt 2.0 && params+=(-DUSE_GL21=On)
172172
fi
173173
if isPlatform "dispmanx"; then
174174
params+=(-DOMX=On)

0 commit comments

Comments
 (0)