There is a memory leak
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user