mirror of https://github.com/wayvr-org/wayvr.git
fix skybox appearing after closing an app in passtrhu mode
This commit is contained in:
parent
5a060c28f2
commit
058baebd0c
|
|
@ -222,7 +222,7 @@ pub fn openxr_run(running: Arc<AtomicBool>, show_by_default: bool) -> Result<(),
|
||||||
if main_session_visible {
|
if main_session_visible {
|
||||||
log::debug!("Destroying skybox.");
|
log::debug!("Destroying skybox.");
|
||||||
skybox = None;
|
skybox = None;
|
||||||
} else {
|
} else if environment_blend_mode == xr::EnvironmentBlendMode::OPAQUE {
|
||||||
log::debug!("Allocating skybox.");
|
log::debug!("Allocating skybox.");
|
||||||
skybox = create_skybox(&xr_state, &app_state);
|
skybox = create_skybox(&xr_state, &app_state);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue