Fix for crash on disabling and re-enabling openvr

This commit is contained in:
Bradley Austin Davis 2016-03-16 17:31:24 -07:00 committed by Brad Davis
parent 7045680bc7
commit b279ff9f7d

View file

@ -55,6 +55,7 @@ void releaseOpenVrSystem() {
if (0 == refCount) {
qCDebug(displayplugins) << "openvr: zero refcount, deallocate VR system";
vr::VR_Shutdown();
activeHmd = nullptr;
}
}
}