Enabled gl30 by default, will likely crash on certain devices...

This commit is contained in:
Anuken
2022-05-11 21:38:30 -04:00
parent de909b2ad3
commit ac4d5b66b3
4 changed files with 6 additions and 6 deletions

View File

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

View File

@ -8,7 +8,6 @@ import mindustry.ui.*;
import mindustry.world.*;
import mindustry.world.meta.*;
//TODO test!
public class ConsumeLiquids extends Consume{
public final LiquidStack[] liquids;

View File

@ -41,10 +41,8 @@ public class DesktopLauncher extends ClientLauncher{
maximized = true;
width = 900;
height = 700;
//enable gl3 with command-line argument
if(Structs.contains(arg, "-gl3")){
gl30 = true;
}
//gl30 now default, disable with argument.
gl30 = !Structs.contains(arg, "-gl2");
if(Structs.contains(arg, "-antialias")){
samples = 16;
}

View File

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