Cleanup on exit

This commit is contained in:
Romain Guy
2020-04-25 14:10:13 -07:00
parent 1d73027df6
commit 2c29c67df0

View File

@@ -191,8 +191,11 @@ static void cleanup(Engine* engine, View*, Scene*) {
g_meshSet.reset(nullptr);
engine->destroy(g_params.light);
engine->destroy(g_params.spotLight);
EntityManager& em = EntityManager::get();
em.destroy(g_params.light);
em.destroy(g_params.spotLight);
}
static void setup(Engine* engine, View*, Scene* scene) {