There is a memory leak

This commit is contained in:
Dynamitos committed 2023-11-30 11:51:53 +01:00
1 parent d1475d506e
commit 1493627ceb
20 files changed
+91 -102

No files matched your search

+7
View File
@@ -15,4 +15,11 @@ LightGather::~LightGather()
void LightGather::update()
{
lightEnv->reset();
scene->view<Component::PointLight>([this](Component::PointLight& pointLight) {
lightEnv->addPointLight(pointLight);
});
scene->view<Component::DirectionalLight>([this](Component::DirectionalLight& dirLight) {
lightEnv->addDirectionalLight(dirLight);
});
}