fix monado no-layer bug

This commit is contained in:
galister
2026-01-22 01:14:04 +09:00
parent c222c25ddf
commit 160e84120d

View File

@@ -345,6 +345,7 @@ pub fn openxr_run(show_by_default: bool, headless: bool) -> Result<(), BackendEr
y: 0.001,
z: 0.001,
});
watch_state.alpha = 0.02; // visible but not really. Monado freaks out if no layers are submitted.
}
if let Err(e) =
@@ -366,7 +367,7 @@ pub fn openxr_run(show_by_default: bool, headless: bool) -> Result<(), BackendEr
log::trace!("{}: hidden, skip render", o.config.name);
continue;
};
if alpha < 0.05 {
if alpha < 0.01 {
log::trace!("{}: alpha too low, skip render", o.config.name);
continue;
}