forked from Dynamitos/Seele
There is a memory leak
This commit is contained in:
1 parent
d1475d506e
commit
1493627ceb
20 files changed
+91
-102
No files matched your search
@@ -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