Properly setting LIBGL_ES

Before: LIBGL_ES=3_desktopgl_angle_vulkan
This commit is contained in:
Duy Tran Khanh 2021-09-06 06:54:26 +07:00 committed by GitHub
parent 537581c21d
commit 20e63ce68a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -249,7 +249,7 @@ public class JREUtils {
//fallback to 2 since it's the minimum for the entire app
envMap.put("LIBGL_ES","2");
} 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 {
// TODO if can: other backends such as Vulkan.
// Sure, they should provide GLES 3 support.