diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2019-12-18 10:14:57 +0100 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2019-12-18 10:15:32 +0100 |
commit | 1776037b0443dc57d59afe0772a83b1d47aced14 (patch) | |
tree | 56213eee7188e5f1d2e4abe290b3757603c835ef /src/render/jobs/lightgatherer.cpp | |
parent | c2ea752f684290d156c500c6a7174fe3f27fa086 (diff) | |
parent | c754eb2883394852f155e31f5366fa25a4ffad42 (diff) |
Merge branch '5.15' into dev
Change-Id: I731aa986e1cc45b3af920db1a23f256927beecf7
Diffstat (limited to 'src/render/jobs/lightgatherer.cpp')
-rw-r--r-- | src/render/jobs/lightgatherer.cpp | 5 |
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; |