mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +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);
|
||||
|
||||
// the _shapeManager should have zero references
|
||||
_shapeManager.collectGarbage();
|
||||
assert(_shapeManager.getNumShapes() == 0);
|
||||
|
||||
// shutdown render engine
|
||||
_main3DScene = nullptr;
|
||||
_renderEngine = nullptr;
|
||||
|
|
Loading…
Reference in a new issue