File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
scriptmodules/supplementary Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -167,8 +167,19 @@ function build_emulationstation() {
167
167
# force GLESv1 on videocore due to performance issue with GLESv2
168
168
isPlatform " videocore" && params+=(-DUSE_GLES1=On)
169
169
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)
172
183
fi
173
184
if isPlatform " dispmanx" ; then
174
185
params+=(-DOMX=On)
You can’t perform that action at this time.
0 commit comments