mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 21:30:33 +02:00
verify empty ShapeManager in Application dtor
This commit is contained in:
parent
5378cbead6
commit
3bd0c111d7
1 changed files with 4 additions and 0 deletions
|
@ -1682,6 +1682,10 @@ Application::~Application() {
|
||||||
|
|
||||||
_physicsEngine->setCharacterController(nullptr);
|
_physicsEngine->setCharacterController(nullptr);
|
||||||
|
|
||||||
|
// the _shapeManager should have zero references
|
||||||
|
_shapeManager.collectGarbage();
|
||||||
|
assert(_shapeManager.getNumShapes() == 0);
|
||||||
|
|
||||||
// shutdown render engine
|
// shutdown render engine
|
||||||
_main3DScene = nullptr;
|
_main3DScene = nullptr;
|
||||||
_renderEngine = nullptr;
|
_renderEngine = nullptr;
|
||||||
|
|
Loading…
Reference in a new issue