dont die if wayland server init fails
This commit is contained in:
@@ -335,7 +335,9 @@ pub fn openvr_run(show_by_default: bool, headless: bool) -> Result<(), BackendEr
|
||||
.for_each(|o| o.after_render(universe.clone(), &mut overlay_mgr, &app.gfx));
|
||||
|
||||
#[cfg(feature = "wayvr")]
|
||||
app.wayvr.borrow_mut().data.tick_finish()?;
|
||||
if let Some(wayland_server) = app.wayland_server.as_ref() {
|
||||
wayland_server.borrow_mut().data.tick_finish()?;
|
||||
}
|
||||
|
||||
// chaperone
|
||||
} // main_loop
|
||||
|
||||
@@ -459,7 +459,9 @@ pub fn openxr_run(show_by_default: bool, headless: bool) -> Result<(), BackendEr
|
||||
// End layer composition
|
||||
|
||||
#[cfg(feature = "wayvr")]
|
||||
app.wayvr.borrow_mut().data.tick_finish()?;
|
||||
if let Some(wayland_server) = app.wayland_server.as_ref() {
|
||||
wayland_server.borrow_mut().data.tick_finish()?;
|
||||
}
|
||||
|
||||
// Begin layer submit
|
||||
layers.sort_by(|a, b| b.0.total_cmp(&a.0));
|
||||
|
||||
Reference in New Issue
Block a user