Open T-Damer opened 1 year ago
4294967295 is 2^32 - 1. Odd that that happens on an M2 Max and not an M1 Max, as far as I know. I wonder if it’s a reserved value that should have been checked somewhere (e.g. u32::MAX).
It's a bug with the beta of next macOS - it works fine with the released macOS
Current workaround is to use BorderlessFullscreen:
use bevy::window::WindowMode;
fn main() {
App::new()
.add_plugins(DefaultPlugins.set(WindowPlugin {
primary_window: Some(Window {
mode: WindowMode::BorderlessFullscreen,
..default()
}),
..default()
}))
.add_startup_system(setup)
.run();
}
It's been fixed upstream in wind, so when the next wind is released it should be fixed by just upgrading the dependency.
I also have my own fix by patching the wing event-handler in bevy: https://github.com/ptxmac/bevy/commit/edfa4e4ec0e0f4cd64da603644b7de58871c9c74
a new version of Bevy has been published with a patch for this, run cargo update
to get Bevy 0.11.3
Bevy version
git checkout latest
Relevant system information
Display settings (using built-in Retina):
What you did
Tried setup guide from bevy web-site, it fails to on
cargo run --example breakout
What went wrong
It should run an example, but it throws an error, looks like it tries to create too big texture:
Additional info
Related issue - https://github.com/bevyengine/bevy/issues/4869