1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-08-15 19:00:32 +03:00

Request a GL 3 context by default

This commit is contained in:
Anuken 2024-05-08 20:15:14 -04:00
parent ea1e33811d
commit bd610b6925
3 changed files with 8 additions and 1 deletions

View File

@ -184,6 +184,7 @@ public class AndroidLauncher extends AndroidApplication{
}, new AndroidApplicationConfiguration(){{ }, new AndroidApplicationConfiguration(){{
useImmersiveMode = true; useImmersiveMode = true;
hideStatusBar = true; hideStatusBar = true;
useGL30 = true;
}}); }});
checkFiles(getIntent()); checkFiles(getIntent());

View File

@ -41,6 +41,9 @@ public class DesktopLauncher extends ClientLauncher{
maximized = true; maximized = true;
width = 900; width = 900;
height = 700; height = 700;
//request 3.1, which has instancing
gl30Minor = 1;
gl30 = true;
for(int i = 0; i < arg.length; i++){ for(int i = 0; i < arg.length; i++){
if(arg[i].charAt(0) == '-'){ if(arg[i].charAt(0) == '-'){
String name = arg[i].substring(1); String name = arg[i].substring(1);
@ -49,6 +52,7 @@ public class DesktopLauncher extends ClientLauncher{
case "width": width = Integer.parseInt(arg[i + 1]); break; case "width": width = Integer.parseInt(arg[i + 1]); break;
case "height": height = Integer.parseInt(arg[i + 1]); break; case "height": height = Integer.parseInt(arg[i + 1]); break;
case "gl3": gl30 = true; break; case "gl3": gl30 = true; break;
case "gl2": gl30 = false; break;
case "antialias": samples = 16; break; case "antialias": samples = 16; break;
case "debug": Log.level = LogLevel.debug; break; case "debug": Log.level = LogLevel.debug; break;
case "maximized": maximized = Boolean.parseBoolean(arg[i + 1]); break; case "maximized": maximized = Boolean.parseBoolean(arg[i + 1]); break;

View File

@ -174,7 +174,9 @@ public class IOSLauncher extends IOSApplication.Delegate{
forced = false; forced = false;
UINavigationController.attemptRotationToDeviceOrientation(); UINavigationController.attemptRotationToDeviceOrientation();
} }
}, new IOSApplicationConfiguration()); }, new IOSApplicationConfiguration(){{
useGL30 = true;
}});
} }
@Override @Override