fix build without openxr feature

This commit is contained in:
galister 2026-05-03 12:41:18 +09:00
parent 6d5615eb54
commit 37f61f74dd
1 changed files with 3 additions and 0 deletions

View File

@ -479,7 +479,10 @@ impl DashInterface<AppState> for DashInterfaceLive {
fn get_feats(&mut self, data: &mut AppState) -> dash_interface::InterfaceFeats { fn get_feats(&mut self, data: &mut AppState) -> dash_interface::InterfaceFeats {
dash_interface::InterfaceFeats { dash_interface::InterfaceFeats {
openxr: matches!(data.xr_backend, XrBackend::OpenXR), openxr: matches!(data.xr_backend, XrBackend::OpenXR),
#[cfg(feature = "openxr")]
monado: data.monado_state.is_some(), monado: data.monado_state.is_some(),
#[cfg(not(feature = "openxr"))]
monado: false,
} }
} }