There is a memory leak
This commit is contained in:
@@ -60,10 +60,6 @@ void LightEnvironment::addPointLight(Component::PointLight pointLight)
|
||||
|
||||
void LightEnvironment::commit()
|
||||
{
|
||||
dirs.add(Component::DirectionalLight{
|
||||
.color = Vector4(1, 1, 1, 1),
|
||||
.direction = Vector4(1, 0, 1, 0),
|
||||
});
|
||||
lightEnv.numDirectionalLights = dirs.size();
|
||||
lightEnv.numPointLights = points.size();
|
||||
lightEnvBuffer->updateContents(DataSource{
|
||||
|
||||
Reference in New Issue
Block a user