Skip to content

Commit b956140

Browse files
authored
Merge pull request #3624 from gizmo98/emulationstation-gles
emulationstation: allow gles for all platforms
2 parents b996468 + 6834e40 commit b956140

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

scriptmodules/supplementary/emulationstation.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,19 @@ 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 -B | grep -oP 'Max compat profile version:\s\K.*')
171-
compareVersions $gl_ver gt 2.0 && params+=(-DUSE_GL21=On)
170+
if isPlatform "gles"; then
171+
params+=(-DGLES=On)
172+
local gles_ver=$(sudo -u $user glxinfo -B | grep -oP 'Max GLES[23] profile version:\s\K.*')
173+
compareVersions $gles_ver lt 2.0 && params+=(-DUSE_GLES1=On)
174+
else
175+
params+=(-DGL=On)
176+
local gl_ver=$(sudo -u $user glxinfo -B | grep -oP 'Max compat profile version:\s\K.*')
177+
compareVersions $gl_ver gt 2.0 && params+=(-DUSE_GL21=On)
178+
fi
179+
elif isPlatform "gles"; then
180+
params+=(-DGLES=On)
181+
elif isPlatform "gl"; then
182+
params+=(-DGL=On)
172183
fi
173184
if isPlatform "dispmanx"; then
174185
params+=(-DOMX=On)

0 commit comments

Comments
 (0)