From 580f17da5a01434489f0996656091d325623501c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 31 Aug 2014 12:51:11 +0200 Subject: fix ovr 0.4 api usage --- ftnoir_tracker_rift/ftnoir_tracker_rift.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ftnoir_tracker_rift/ftnoir_tracker_rift.cpp') 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; -- cgit v1.2.3