fix headless_renderer example exiting immediately
This commit is contained in:
parent
3396f812ef
commit
c4672a34d2
@ -29,6 +29,7 @@ use bevy::{
|
||||
renderer::{RenderContext, RenderDevice, RenderQueue},
|
||||
Extract, Render, RenderApp, RenderSystems,
|
||||
},
|
||||
window::ExitCondition,
|
||||
winit::WinitPlugin,
|
||||
};
|
||||
use crossbeam_channel::{Receiver, Sender};
|
||||
@ -92,7 +93,7 @@ fn main() {
|
||||
primary_window: None,
|
||||
// Don’t automatically exit due to having no windows.
|
||||
// Instead, the code in `update()` will explicitly produce an `AppExit` event.
|
||||
exit_condition: bevy::window::ExitCondition::DontExit,
|
||||
exit_condition: ExitCondition::DontExit,
|
||||
..default()
|
||||
})
|
||||
// WinitPlugin will panic in environments without a display server.
|
||||
|
Loading…
Reference in New Issue
Block a user