Fix linux issue on desktop runtime

This commit is contained in:
lax1dude 2024-11-09 16:25:14 -08:00
parent 6d8df8128f
commit 208d536d5b
4 changed files with 5 additions and 2 deletions

View File

@ -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() {

View File

@ -1,11 +1,15 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/eclipseProject/${MAIN_CLASS_FILE}"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="1"/>
</listAttribute>
<mapAttribute key="org.eclipse.debug.core.environmentVariables">
<mapEntry key="LD_LIBRARY_PATH" value="${WORKING_DIRECTORY}"/>
</mapAttribute>
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>