summaryrefslogtreecommitdiffstats
path: root/src/render/jobs/lightgatherer_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/jobs/lightgatherer_p.h')
-rw-r--r--src/render/jobs/lightgatherer_p.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/render/jobs/lightgatherer_p.h b/src/render/jobs/lightgatherer_p.h
index 59e64ad74..cc3948f12 100644
--- a/src/render/jobs/lightgatherer_p.h
+++ b/src/render/jobs/lightgatherer_p.h
@@ -71,14 +71,9 @@ public:
inline void setManager(EntityManager *manager) Q_DECL_NOTHROW { m_manager = manager; }
inline QVector<LightSource> &lights() { return m_lights; }
- inline EnvironmentLight *takeEnvironmentLight()
- {
- auto envLight = m_environmentLight;
- m_environmentLight = nullptr;
- return envLight;
- }
-
- void run() final;
+ inline EnvironmentLight *environmentLight() const { return m_environmentLight; }
+
+ void run() override;
private:
EntityManager *m_manager;