mirror of https://github.com/wayvr-org/wayvr.git
fix build without openxr feature
This commit is contained in:
parent
6d5615eb54
commit
37f61f74dd
|
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue