This commit is contained in:
Fluffy Jenkins 2019-12-19 23:54:34 +00:00 committed by GitHub
parent a9ce336f6c
commit 9f3772093a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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!";