diff --git a/mobile/src/lib.rs b/mobile/src/lib.rs index ba216ea..e341b78 100644 --- a/mobile/src/lib.rs +++ b/mobile/src/lib.rs @@ -4,17 +4,23 @@ use sokoban::GamePlugin; #[bevy_main] fn main() { - App::new() - .add_plugins(( - DefaultPlugins.set(WindowPlugin { - primary_window: Some(Window { - resizable: false, - mode: WindowMode::BorderlessFullscreen, - ..default() - }), + let mut app = App::new(); + app.add_plugins(( + DefaultPlugins.set(WindowPlugin { + primary_window: Some(Window { + resizable: false, + mode: WindowMode::BorderlessFullscreen, ..default() }), - GamePlugin, - )) - .run() + ..default() + }), + GamePlugin, + )); + + // MSAA makes some Android devices panic, this is under investigation + // https://github.com/bevyengine/bevy/issues/8229 + #[cfg(target_os = "android")] + app.insert_resource(Msaa::Off); + + app.run(); }