mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 03:19:24 +02:00
Its late
This commit is contained in:
parent
a9ce336f6c
commit
9f3772093a
1 changed files with 2 additions and 2 deletions
|
@ -112,7 +112,7 @@ bool isHMDInErrorState = false;
|
||||||
|
|
||||||
vr::IVRSystem* acquireOpenVrSystem() {
|
vr::IVRSystem* acquireOpenVrSystem() {
|
||||||
bool hmdPresent = vr::VR_IsHmdPresent();
|
bool hmdPresent = vr::VR_IsHmdPresent();
|
||||||
if (hmdPresent && (!isHMDConnected)) {
|
if (hmdPresent && (!isHMDInErrorState)) {
|
||||||
Lock lock(mutex);
|
Lock lock(mutex);
|
||||||
if (!activeHmd) {
|
if (!activeHmd) {
|
||||||
#if DEV_BUILD
|
#if DEV_BUILD
|
||||||
|
@ -126,7 +126,7 @@ vr::IVRSystem* acquireOpenVrSystem() {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (eError == 108) { // vr::HmdError_Init_HmdNotFound
|
if (eError == 108) { // vr::HmdError_Init_HmdNotFound
|
||||||
isHMDConnected = true;
|
isHMDInErrorState = true;
|
||||||
activeHmd = nullptr;
|
activeHmd = nullptr;
|
||||||
#if DEV_BUILD
|
#if DEV_BUILD
|
||||||
qCDebug(displayplugins) << "OpenVR: No HMD connected, setting nullptr!";
|
qCDebug(displayplugins) << "OpenVR: No HMD connected, setting nullptr!";
|
||||||
|
|
Loading…
Reference in a new issue