gl4es: disable overloading default functions shader hack

This fixes startup crash on certain devices, thanks to @NotAHero04
This commit is contained in:
Duy Tran Khanh 2022-01-01 17:13:37 +07:00 committed by GitHub
parent 1403a0c0af
commit 5c9db455d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,6 +210,9 @@ public class JREUtils {
envMap.put("TMPDIR", activity.getCacheDir().getAbsolutePath());
envMap.put("LIBGL_MIPMAP", "3");
// On certain GLES drivers, overloading default functions shader hack fails, so disable it
envMap.put("LIBGL_NOINTOVLHACK", "1");
// The shrink hack can be enabled from the experimental settings
envMap.put("LIBGL_SHRINK", PREF_GLES_SHRINK_HACK);