openvr: rm state.rift;

Yay actions?
This commit is contained in:
bjorn 2019-05-12 23:58:27 -07:00
parent 8e7a4323d0
commit 69260cfbb3
1 changed files with 0 additions and 3 deletions

View File

@ -85,7 +85,6 @@ static struct {
RenderModel_TextureMap_t* deviceTextures[16];
Canvas* canvas;
vec_float_t boundsGeometry;
bool rift;
float clipNear;
float clipFar;
float offset;
@ -208,8 +207,6 @@ static bool openvr_init(float offset, int msaa) {
state.input->GetActionHandle("/actions/lovr/out/leftHandBZZ", &state.hapticActions[0]);
state.input->GetActionHandle("/actions/lovr/out/rightHandBZZ", &state.hapticActions[1]);
openvr_getName(buffer, sizeof(buffer));
state.rift = !strncmp(buffer, "Oculus", sizeof(buffer));
state.clipNear = 0.1f;
state.clipFar = 30.f;
state.offset = state.compositor->GetTrackingSpace() == ETrackingUniverseOrigin_TrackingUniverseStanding ? 0. : offset;