fix skybox appearing after closing an app in passtrhu mode
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user