I've tried to use fullscreen but every single time it instantly closes the window with this error in the console:
Error in Surface::configure: Validation Error
Caused by:
Parent device is lost
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Encountered a panic in system bevy_render::view::window::create_surfaces!
thread 'Compute Task Pool (2)' panicked at C:\Users\Astamor.cargo\registry\src\index.crates.io-6f17d22bba15001f\bevy_render-0.13.1\src\pipelined_rendering.rs:49:67:
called Result::unwrap() on an Err value: RecvError
error: process didn't exit successfully: target\debug\bevy-project.exe (exit code: 101)
Here is my window setup, nothing really special about it:
set(WindowPlugin {
primary_window: Some(Window {
mode: bevy:🪟:WindowMode::Fullscreen,
present_mode: bevy:🪟:PresentMode::AutoVsync,
title: "Cintra RPG".into(),
resolution: WindowResolution::new(RESOLUTION_X, RESOLUTION_Y as f32).into(),
resizable: false,
..default()
}),
..default()
})