mirror of
https://github.com/overte-org/overte.git
synced 2025-04-11 08:04:58 +02:00
Fix vive crash on deactivate
This commit is contained in:
parent
8420e67b54
commit
27033e5bb5
1 changed files with 4 additions and 1 deletions
|
@ -86,13 +86,16 @@ void OpenVrDisplayPlugin::activate() {
|
|||
}
|
||||
|
||||
void OpenVrDisplayPlugin::deactivate() {
|
||||
// Base class deactivate must come before our local deactivate
|
||||
// because the OpenGL base class handles the wait for the present
|
||||
// thread before continuing
|
||||
HmdDisplayPlugin::deactivate();
|
||||
_container->setIsOptionChecked(StandingHMDSensorMode, false);
|
||||
if (_system) {
|
||||
releaseOpenVrSystem();
|
||||
_system = nullptr;
|
||||
}
|
||||
_compositor = nullptr;
|
||||
HmdDisplayPlugin::deactivate();
|
||||
}
|
||||
|
||||
void OpenVrDisplayPlugin::customizeContext() {
|
||||
|
|
Loading…
Reference in a new issue