#FullScreen not working

4 messages · Page 1 of 1 (latest)

tawdry grove
#

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()
})

fervent marsh
#

This is maybe because you have set resizable to false?

tawdry grove
#

From what I understand resizable only applies to windowed mode and allows you to resize window by dragging your mouse. Of course just in case I've tested resizable: true and it still gives me the same error

dreamy orchid
#

Try BorderlessFullscreen instead of Fullscreen. One of my users had the same error, that fixed it