From 52a0936b86ebfad964ed24e2f4469cf67e5ae3b4 Mon Sep 17 00:00:00 2001 From: khanhduytran0 Date: Sat, 15 Aug 2020 15:23:46 +0700 Subject: [PATCH] LWJGL3: Set some properties --- app/src/main/java/net/kdt/pojavlaunch/MainActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/net/kdt/pojavlaunch/MainActivity.java b/app/src/main/java/net/kdt/pojavlaunch/MainActivity.java index 0114f38c86..694f9110b6 100644 --- a/app/src/main/java/net/kdt/pojavlaunch/MainActivity.java +++ b/app/src/main/java/net/kdt/pojavlaunch/MainActivity.java @@ -877,6 +877,10 @@ public void initEnvs() { if (!System.getProperty("user.home", "/").equals(Tools.MAIN_PATH)) { forceUserHome(Tools.MAIN_PATH); } + + // FIXME: Is loading libc.so good? + System.setProperty("org.lwjgl.jemalloc.libname", "libc.so"); + System.setProperty("org.lwjgl.opengl.libname", "libgl04es.so"); // Enable LWJGL3 debug System.setProperty("org.lwjgl.util.Debug", "true");