diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-08-31 12:51:11 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-08-31 12:51:11 +0200 |
commit | 580f17da5a01434489f0996656091d325623501c (patch) | |
tree | 4aa6d1837d3000d28ebc432198f5a9e41094c751 /ftnoir_tracker_rift/ftnoir_tracker_rift.cpp | |
parent | 0027139d8348e07e6a2d9734489964961294fe22 (diff) |
fix ovr 0.4 api usage
Diffstat (limited to 'ftnoir_tracker_rift/ftnoir_tracker_rift.cpp')
-rw-r--r-- | ftnoir_tracker_rift/ftnoir_tracker_rift.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp index ea268f12..be0ee689 100644 --- a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp +++ b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp @@ -40,7 +40,7 @@ void Rift_Tracker::GetHeadPoseData(double *data) ovrHSWDisplayState hsw; if (ovrHmd_GetHSWDisplayState(hmd, &hsw), hsw.Displayed) ovrHmd_DismissHSWDisplay(hmd); - ovrTrackingState ss = ovrHmd_GetTrackingState(hmd, frameTiming.ScanoutMidpointSeconds); + ovrTrackingState ss = ovrHmd_GetTrackingState(hmd, 0); if(ss.StatusFlags & ovrStatus_OrientationTracked) { auto pose = ss.HeadPose.ThePose; Quatf quat = pose.Orientation; |