mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-13 17:27:35 +07:00
Enabled gl30 by default, will likely crash on certain devices...
This commit is contained in:
@ -180,6 +180,7 @@ public class AndroidLauncher extends AndroidApplication{
|
|||||||
}, new AndroidApplicationConfiguration(){{
|
}, new AndroidApplicationConfiguration(){{
|
||||||
useImmersiveMode = true;
|
useImmersiveMode = true;
|
||||||
hideStatusBar = true;
|
hideStatusBar = true;
|
||||||
|
useGL30 = true;
|
||||||
}});
|
}});
|
||||||
checkFiles(getIntent());
|
checkFiles(getIntent());
|
||||||
|
|
||||||
|
@ -8,7 +8,6 @@ import mindustry.ui.*;
|
|||||||
import mindustry.world.*;
|
import mindustry.world.*;
|
||||||
import mindustry.world.meta.*;
|
import mindustry.world.meta.*;
|
||||||
|
|
||||||
//TODO test!
|
|
||||||
public class ConsumeLiquids extends Consume{
|
public class ConsumeLiquids extends Consume{
|
||||||
public final LiquidStack[] liquids;
|
public final LiquidStack[] liquids;
|
||||||
|
|
||||||
|
@ -41,10 +41,8 @@ public class DesktopLauncher extends ClientLauncher{
|
|||||||
maximized = true;
|
maximized = true;
|
||||||
width = 900;
|
width = 900;
|
||||||
height = 700;
|
height = 700;
|
||||||
//enable gl3 with command-line argument
|
//gl30 now default, disable with argument.
|
||||||
if(Structs.contains(arg, "-gl3")){
|
gl30 = !Structs.contains(arg, "-gl2");
|
||||||
gl30 = true;
|
|
||||||
}
|
|
||||||
if(Structs.contains(arg, "-antialias")){
|
if(Structs.contains(arg, "-antialias")){
|
||||||
samples = 16;
|
samples = 16;
|
||||||
}
|
}
|
||||||
|
@ -177,7 +177,9 @@ public class IOSLauncher extends IOSApplication.Delegate{
|
|||||||
forced = false;
|
forced = false;
|
||||||
UINavigationController.attemptRotationToDeviceOrientation();
|
UINavigationController.attemptRotationToDeviceOrientation();
|
||||||
}
|
}
|
||||||
}, new IOSApplicationConfiguration());
|
}, new IOSApplicationConfiguration(){{
|
||||||
|
useGL30 = true;
|
||||||
|
}});
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user