fixed compile error with LIBOVR

This commit is contained in:
wangyix 2014-08-13 11:28:41 -07:00
parent db0fbcab97
commit 014346094b

View file

@ -504,7 +504,7 @@ void OculusManager::getEulerAngles(float& yaw, float& pitch, float& roll) {
}
glm::vec3 OculusManager::getRelativePosition() {
#if defined(__APPLE__) || defined(_WIN32)
#if defined(HAVE_LIBOVR) && (defined(__APPLE__) || defined(_WIN32))
ovrTrackingState trackingState = ovrHmd_GetTrackingState(_ovrHmd, ovr_GetTimeInSeconds());
ovrVector3f headPosition = trackingState.HeadPose.ThePose.Position;