mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 22:39:18 +02:00
Merge pull request #10987 from SamGondelman/hmd59Crash2
Fix crash when putting on HMD for Qt 5.9
This commit is contained in:
parent
d572510770
commit
4684b388c7
1 changed files with 7 additions and 5 deletions
|
@ -126,15 +126,17 @@ void OculusBaseDisplayPlugin::internalDeactivate() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OculusBaseDisplayPlugin::activateStandBySession() {
|
bool OculusBaseDisplayPlugin::activateStandBySession() {
|
||||||
_session = acquireOculusSession();
|
|
||||||
if (!_session) {
|
if (!_session) {
|
||||||
return false;
|
_session = acquireOculusSession();
|
||||||
}
|
}
|
||||||
return true;
|
return _session;
|
||||||
}
|
}
|
||||||
void OculusBaseDisplayPlugin::deactivateSession() {
|
void OculusBaseDisplayPlugin::deactivateSession() {
|
||||||
releaseOculusSession();
|
// FIXME
|
||||||
_session = nullptr;
|
// Switching to Qt 5.9 exposed a race condition or similar issue that caused a crash when putting on an Rift
|
||||||
|
// while already in VR mode. Commenting these out is a workaround.
|
||||||
|
//releaseOculusSession();
|
||||||
|
//_session = nullptr;
|
||||||
}
|
}
|
||||||
void OculusBaseDisplayPlugin::updatePresentPose() {
|
void OculusBaseDisplayPlugin::updatePresentPose() {
|
||||||
//mat4 sensorResetMat;
|
//mat4 sensorResetMat;
|
||||||
|
|
Loading…
Reference in a new issue