Skip to content

Commit 59fde5b

Browse files
author
eaglercraft
committed
Fix linux issue on desktop runtime
1 parent 660214e commit 59fde5b

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

desktopRuntime/eclipseProject/eaglercraftDebugRuntime.launch

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
88
<listEntry value="1"/>
99
</listAttribute>
10+
<mapAttribute key="org.eclipse.debug.core.environmentVariables">
11+
<mapEntry key="LD_LIBRARY_PATH" value="${project_loc}/../"/>
12+
</mapAttribute>
1013
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
1114
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
1215
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>

src/lwjgl/java/net/lax1dude/eaglercraft/v1_8/internal/PlatformRuntime.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,7 @@ public static void destroy() {
336336

337337
private static boolean probablyGLES2(String glVersion) {
338338
if(glVersion == null) return false;
339-
glVersion = glVersion.toLowerCase();
340-
return glVersion.contains("opengl es 2.0") || glVersion.contains("ES 2.0");
339+
return glVersion.toLowerCase().contains("opengl es 2.0") || glVersion.contains("ES 2.0");
341340
}
342341

343342
public static EnumPlatformType getPlatformType() {

0 commit comments

Comments
 (0)