Skip to content

Commit

Permalink
Doesn't help.
Browse files Browse the repository at this point in the history
  • Loading branch information
ohgodhowdidthisgethere committed Aug 16, 2016
1 parent 602a792 commit 649023c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/director.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,14 @@ bool Director::update()
std::cerr << "Oculus display lost" << std::endl;
}
if (status.ShouldRecenter) {
ovr_ClearShouldRecenterFlag(_oculus.session);
if (ovr_RecenterTrackingOrigin(_oculus.session) != ovrSuccess) {
ovr_ClearShouldRecenterFlag(_oculus.session);
}
}
_oculus.started = status.HmdPresent && !status.DisplayLost;
if (!status.IsVisible && _switch_themes % 1000 == 0) {
std::cerr << "Lost focus (move the HMD?)" << std::endl;
}
_oculus.started =
status.IsVisible && status.HmdPresent && !status.DisplayLost;
}
return true;
}
Expand Down

0 comments on commit 649023c

Please sign in to comment.