openvr driver uses correct offset;

This commit is contained in:
bjorn 2018-04-11 00:26:16 -07:00
parent 7dc8f4ad58
commit 3528182919
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ static bool openvrInit(float offset) {
state.vsyncToPhotons = state.system->GetFloatTrackedDeviceProperty(state.headsetIndex, ETrackedDeviceProperty_Prop_SecondsFromVsyncToPhotons_Float, NULL);
state.isRendering = false;
state.isMirrored = true;
state.offset = lovrHeadsetGetOriginType() == ORIGIN_HEAD ? offset : 0.;
state.offset = state.compositor->GetTrackingSpace() == ETrackingUniverseOrigin_TrackingUniverseStanding ? 0. : offset;
state.canvas = NULL;
state.clipNear = 0.1f;
state.clipFar = 30.f;