From 59fde5b457e121453aa70b07e646d6129399b92b Mon Sep 17 00:00:00 2001 From: eaglercraft Date: Sat, 9 Nov 2024 16:37:13 -0800 Subject: [PATCH] Fix linux issue on desktop runtime --- .../eclipseProject/eaglercraftDebugRuntime.launch | 3 +++ desktopRuntime/{libEGL.so => libEGL.so.1} | Bin desktopRuntime/{libGLESv2.so.2 => libGLESv2.so} | Bin .../eaglercraft/v1_8/internal/PlatformRuntime.java | 3 +-- 4 files changed, 4 insertions(+), 2 deletions(-) rename desktopRuntime/{libEGL.so => libEGL.so.1} (100%) rename desktopRuntime/{libGLESv2.so.2 => libGLESv2.so} (100%) diff --git a/desktopRuntime/eclipseProject/eaglercraftDebugRuntime.launch b/desktopRuntime/eclipseProject/eaglercraftDebugRuntime.launch index f3d6758..c578179 100755 --- a/desktopRuntime/eclipseProject/eaglercraftDebugRuntime.launch +++ b/desktopRuntime/eclipseProject/eaglercraftDebugRuntime.launch @@ -7,6 +7,9 @@ + + + diff --git a/desktopRuntime/libEGL.so b/desktopRuntime/libEGL.so.1 similarity index 100% rename from desktopRuntime/libEGL.so rename to desktopRuntime/libEGL.so.1 diff --git a/desktopRuntime/libGLESv2.so.2 b/desktopRuntime/libGLESv2.so similarity index 100% rename from desktopRuntime/libGLESv2.so.2 rename to desktopRuntime/libGLESv2.so diff --git a/src/lwjgl/java/net/lax1dude/eaglercraft/v1_8/internal/PlatformRuntime.java b/src/lwjgl/java/net/lax1dude/eaglercraft/v1_8/internal/PlatformRuntime.java index 1b5a8dd..f5a3a8a 100755 --- a/src/lwjgl/java/net/lax1dude/eaglercraft/v1_8/internal/PlatformRuntime.java +++ b/src/lwjgl/java/net/lax1dude/eaglercraft/v1_8/internal/PlatformRuntime.java @@ -336,8 +336,7 @@ public class PlatformRuntime { private static boolean probablyGLES2(String glVersion) { if(glVersion == null) return false; - glVersion = glVersion.toLowerCase(); - return glVersion.contains("opengl es 2.0") || glVersion.contains("ES 2.0"); + return glVersion.toLowerCase().contains("opengl es 2.0") || glVersion.contains("ES 2.0"); } public static EnumPlatformType getPlatformType() {