mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-11-21 09:31:33 -08:00
Move assert in body tracker destructor
This commit is contained in:
1 parent
fedd7917db
commit
24c38e2a02
1 file changed
+3
-1
@@ -58,10 +58,12 @@ void xr::fb_body_tracker::start(bool full_body, bool hip)
|
||||
}
|
||||
void xr::fb_body_tracker::stop()
|
||||
{
|
||||
assert(xrDestroyBodyTrackerFB);
|
||||
full_body = false;
|
||||
if (handle)
|
||||
{
|
||||
assert(xrDestroyBodyTrackerFB);
|
||||
CHECK_XR(xrDestroyBodyTrackerFB(std::exchange(handle, nullptr)));
|
||||
}
|
||||
}
|
||||
|
||||
std::optional<std::array<wivrn::from_headset::body_tracking::pose, wivrn::from_headset::body_tracking::max_tracked_poses>> xr::fb_body_tracker::locate_spaces(XrTime time, XrSpace reference)
|
||||
|
||||
Reference in new issue
Block a user