summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ftnoir_tracker_rift/ftnoir_tracker_rift.cpp2
-rw-r--r--ftnoir_tracker_rift/ftnoir_tracker_rift.h2
2 files changed, 1 insertions, 3 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;
diff --git a/ftnoir_tracker_rift/ftnoir_tracker_rift.h b/ftnoir_tracker_rift/ftnoir_tracker_rift.h
index 3e26abdb..ee51b2cb 100644
--- a/ftnoir_tracker_rift/ftnoir_tracker_rift.h
+++ b/ftnoir_tracker_rift/ftnoir_tracker_rift.h
@@ -45,8 +45,6 @@ protected:
private:
double old_yaw;
ovrHmd hmd;
- ovrHmdDesc hmdDesc;
- ovrFrameTiming frameTiming;
settings s;
};