Maybe fix LIBGL_ES

This commit is contained in:
Duy Tran Khanh 2021-08-21 18:40:49 +07:00 committed by GitHub
parent f336faeb67
commit 13c3443c2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -248,7 +248,7 @@ public class JREUtils {
//fallback to 2 since it's the minimum for the entire app //fallback to 2 since it's the minimum for the entire app
envMap.put("LIBGL_ES","2"); envMap.put("LIBGL_ES","2");
} else if (LOCAL_RENDERER.startsWith("opengles")) { } else if (LOCAL_RENDERER.startsWith("opengles")) {
envMap.put("LIBGL_ES", LOCAL_RENDERER.replace("opengles", "").replace("_5", "")); envMap.put("LIBGL_ES", Character.toString(LOCAL_RENDERER.charAt(8));
} else { } else {
// TODO if can: other backends such as Vulkan. // TODO if can: other backends such as Vulkan.
// Sure, they should provide GLES 3 support. // Sure, they should provide GLES 3 support.