mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-07-14 11:00:35 +03:00
Request a GL 3 context by default
This commit is contained in:
parent
ea1e33811d
commit
bd610b6925
@ -184,6 +184,7 @@ public class AndroidLauncher extends AndroidApplication{
|
||||
}, new AndroidApplicationConfiguration(){{
|
||||
useImmersiveMode = true;
|
||||
hideStatusBar = true;
|
||||
useGL30 = true;
|
||||
}});
|
||||
checkFiles(getIntent());
|
||||
|
||||
|
@ -41,6 +41,9 @@ public class DesktopLauncher extends ClientLauncher{
|
||||
maximized = true;
|
||||
width = 900;
|
||||
height = 700;
|
||||
//request 3.1, which has instancing
|
||||
gl30Minor = 1;
|
||||
gl30 = true;
|
||||
for(int i = 0; i < arg.length; i++){
|
||||
if(arg[i].charAt(0) == '-'){
|
||||
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 "height": height = Integer.parseInt(arg[i + 1]); break;
|
||||
case "gl3": gl30 = true; break;
|
||||
case "gl2": gl30 = false; break;
|
||||
case "antialias": samples = 16; break;
|
||||
case "debug": Log.level = LogLevel.debug; break;
|
||||
case "maximized": maximized = Boolean.parseBoolean(arg[i + 1]); break;
|
||||
|
@ -174,7 +174,9 @@ public class IOSLauncher extends IOSApplication.Delegate{
|
||||
forced = false;
|
||||
UINavigationController.attemptRotationToDeviceOrientation();
|
||||
}
|
||||
}, new IOSApplicationConfiguration());
|
||||
}, new IOSApplicationConfiguration(){{
|
||||
useGL30 = true;
|
||||
}});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user