Skip to content

Commit

Permalink
emulationstation.sh: remove deprecated gl version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmo98 committed Mar 28, 2023
1 parent f286ce8 commit 1cd6b0c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions scriptmodules/supplementary/emulationstation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,6 @@ function build_emulationstation() {
isPlatform "mesa" && params+=(-DGL=On)
# force GLESv1 on videocore due to performance issue with GLESv2
isPlatform "videocore" && params+=(-DUSE_GLES1=On)
elif isPlatform "x11"; then
if isPlatform "gles"; then
params+=(-DGLES=On)
local gles_ver=$(sudo -u $user glxinfo -B | grep -oP 'Max GLES[23] profile version:\s\K.*')
compareVersions $gles_ver lt 2.0 && params+=(-DUSE_GLES1=On)
else
params+=(-DGL=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)
fi
elif isPlatform "gles"; then
params+=(-DGLES=On)
! isPlatform "gles2" && params+=(-DUSE_GLES1=On)
Expand Down

0 comments on commit 1cd6b0c

Please sign in to comment.