wgui: components base, anyhow event listener callbacks, 📦📎-fixes, typo fixes
This commit is contained in:
@@ -132,7 +132,8 @@ pub(super) unsafe fn create_overlay_session(
|
||||
system_id: system,
|
||||
};
|
||||
let mut out = xr::sys::Session::NULL;
|
||||
let x = unsafe { (instance.fp().create_session)(instance.as_raw(), &info, &mut out) };
|
||||
let x =
|
||||
unsafe { (instance.fp().create_session)(instance.as_raw(), &raw const info, &raw mut out) };
|
||||
if x.into_raw() >= 0 { Ok(out) } else { Err(x) }
|
||||
}
|
||||
|
||||
|
||||
@@ -121,6 +121,7 @@ impl LinePool {
|
||||
|
||||
let to_hmd = hmd.translation - from.translation;
|
||||
let sides = [Vec3A::Z, Vec3A::X, Vec3A::NEG_Z, Vec3A::NEG_X];
|
||||
#[allow(clippy::neg_multiply)]
|
||||
let rotations = [
|
||||
Affine3A::IDENTITY,
|
||||
Affine3A::from_axis_angle(Vec3::Y, PI * 0.5),
|
||||
|
||||
Reference in New Issue
Block a user