summaryrefslogtreecommitdiffstats
path: root/src/render/jobs/lightgatherer.cpp
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2019-12-18 10:14:57 +0100
committerPaul Lemire <paul.lemire@kdab.com>2019-12-18 10:15:32 +0100
commit1776037b0443dc57d59afe0772a83b1d47aced14 (patch)
tree56213eee7188e5f1d2e4abe290b3757603c835ef /src/render/jobs/lightgatherer.cpp
parentc2ea752f684290d156c500c6a7174fe3f27fa086 (diff)
parentc754eb2883394852f155e31f5366fa25a4ffad42 (diff)
Merge branch '5.15' into dev
Diffstat (limited to 'src/render/jobs/lightgatherer.cpp')
-rw-r--r--src/render/jobs/lightgatherer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/render/jobs/lightgatherer.cpp b/src/render/jobs/lightgatherer.cpp
index b76cd4d73..b79976aef 100644
--- a/src/render/jobs/lightgatherer.cpp
+++ b/src/render/jobs/lightgatherer.cpp
@@ -53,11 +53,14 @@ LightGatherer::LightGatherer()
, m_manager(nullptr)
, m_environmentLight(nullptr)
{
- SET_JOB_RUN_STAT_TYPE(this, JobTypes::LightGathering, 0);
+ SET_JOB_RUN_STAT_TYPE(this, JobTypes::LightGathering, 0)
}
void LightGatherer::run()
{
+ m_lights.clear();
+ m_environmentLight = nullptr;
+
const QVector<HEntity> handles = m_manager->activeHandles();
int envLightCount = 0;