mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 03:35:47 +02:00
Fix for crash on exit.
This commit is contained in:
parent
15f8b3006b
commit
7bcc267cb5
2 changed files with 8 additions and 0 deletions
|
@ -48,6 +48,12 @@ MetavoxelSystem::NetworkSimulation::NetworkSimulation(float dropRate, float repe
|
||||||
bandwidthLimit(bandwidthLimit) {
|
bandwidthLimit(bandwidthLimit) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MetavoxelSystem::~MetavoxelSystem() {
|
||||||
|
// kill the updater before we delete our network simulation objects
|
||||||
|
_updater->thread()->quit();
|
||||||
|
_updater->thread()->wait();
|
||||||
|
}
|
||||||
|
|
||||||
void MetavoxelSystem::init() {
|
void MetavoxelSystem::init() {
|
||||||
MetavoxelClientManager::init();
|
MetavoxelClientManager::init();
|
||||||
DefaultMetavoxelRendererImplementation::init();
|
DefaultMetavoxelRendererImplementation::init();
|
||||||
|
|
|
@ -43,6 +43,8 @@ public:
|
||||||
int maximumDelay = 0, int bandwidthLimit = 0);
|
int maximumDelay = 0, int bandwidthLimit = 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
virtual ~MetavoxelSystem();
|
||||||
|
|
||||||
virtual void init();
|
virtual void init();
|
||||||
|
|
||||||
virtual MetavoxelLOD getLOD();
|
virtual MetavoxelLOD getLOD();
|
||||||
|
|
Loading…
Reference in a new issue