mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01: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() {
|
||||
bool hmdPresent = vr::VR_IsHmdPresent();
|
||||
if (hmdPresent && (!isHMDConnected)) {
|
||||
if (hmdPresent && (!isHMDInErrorState)) {
|
||||
Lock lock(mutex);
|
||||
if (!activeHmd) {
|
||||
#if DEV_BUILD
|
||||
|
@ -126,7 +126,7 @@ vr::IVRSystem* acquireOpenVrSystem() {
|
|||
#endif
|
||||
|
||||
if (eError == 108) { // vr::HmdError_Init_HmdNotFound
|
||||
isHMDConnected = true;
|
||||
isHMDInErrorState = true;
|
||||
activeHmd = nullptr;
|
||||
#if DEV_BUILD
|
||||
qCDebug(displayplugins) << "OpenVR: No HMD connected, setting nullptr!";
|
||||
|
|
Loading…
Reference in a new issue