From de7e9467cb0c56665798ef662b5b757fa5505cc1 Mon Sep 17 00:00:00 2001 From: SolDev69 Date: Tue, 30 Jul 2024 21:23:54 -0400 Subject: [PATCH] [fix/parity] specify opengl libname lost in updating from upstream --- .../src/main/java/net/kdt/pojavlaunch/utils/JREUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/utils/JREUtils.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/utils/JREUtils.java index 477ba3d7a1..0cd250934f 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/utils/JREUtils.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/utils/JREUtils.java @@ -339,6 +339,7 @@ public static void launchJavaVM(final AppCompatActivity activity, final Runtime userArgs.add("-Xmx" + LauncherPreferences.PREF_RAM_ALLOCATION + "M"); } + if(LOCAL_RENDERER != null) userArgs.add("-Dorg.lwjgl.opengl.libname=" + graphicsLib); // Force LWJGL to use the Freetype library intended for it, instead of using the one // that we ship with Java (since it may be older than what's needed) userArgs.add("-Dorg.lwjgl.freetype.libname="+ NATIVE_LIB_DIR+"/libfreetype.so");