summaryrefslogtreecommitdiffstats
path: root/src/render/jobs/lightgatherer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/jobs/lightgatherer.cpp')
-rw-r--r--src/render/jobs/lightgatherer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/jobs/lightgatherer.cpp b/src/render/jobs/lightgatherer.cpp
index b76cd4d73..f4c8dfba8 100644
--- a/src/render/jobs/lightgatherer.cpp
+++ b/src/render/jobs/lightgatherer.cpp
@@ -58,6 +58,9 @@ LightGatherer::LightGatherer()
void LightGatherer::run()
{
+ m_lights.clear();
+ m_environmentLight = nullptr;
+
const QVector<HEntity> handles = m_manager->activeHandles();
int envLightCount = 0;