mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-09-11 08:15: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(){{
|
}, new AndroidApplicationConfiguration(){{
|
||||||
useImmersiveMode = true;
|
useImmersiveMode = true;
|
||||||
hideStatusBar = true;
|
hideStatusBar = true;
|
||||||
|
useGL30 = true;
|
||||||
}});
|
}});
|
||||||
checkFiles(getIntent());
|
checkFiles(getIntent());
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user