Skip to content

Commit 2e6a8a9

Browse files
committed
fix build without openxr feature
1 parent 6d5615e commit 2e6a8a9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

wayvr/src/overlays/dashboard.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,10 @@ impl DashInterface<AppState> for DashInterfaceLive {
479479
fn get_feats(&mut self, data: &mut AppState) -> dash_interface::InterfaceFeats {
480480
dash_interface::InterfaceFeats {
481481
openxr: matches!(data.xr_backend, XrBackend::OpenXR),
482+
#[cfg(feature = "openxr")]
482483
monado: data.monado_state.is_some(),
484+
#[cfg(not(feature = "openxr"))]
485+
monado: None,
483486
}
484487
}
485488

0 commit comments

Comments
 (0)