Propogate configuration changes through tasks

This commit is contained in:
Zach Pomerantz 2016-01-25 15:13:06 -08:00
parent e73902899b
commit 59ac93485e
2 changed files with 1 additions and 2 deletions

View file

@ -121,6 +121,7 @@ RenderShadowTask::RenderShadowTask(CullFunctor cullFunctor) : Task(std::make_sha
void RenderShadowTask::configure(const Config& configuration) {
DependencyManager::get<DeferredLightingEffect>()->setShadowMapEnabled(configuration.enabled);
Task::configure(configuration);
}
void RenderShadowTask::run(const SceneContextPointer& sceneContext, const render::RenderContextPointer& renderContext) {

View file

@ -101,8 +101,6 @@ template <class T, class C> void jobConfigure(T& model, const C& configuration)
}
template<class T> void jobConfigure(T&, const JobConfig&) {
}
template<class T> void jobConfigure(T&, const TaskConfig&) {
}
// FIXME: In c++17, use default classes of nullptr_t to combine these
template <class T> void jobRun(T& model, const SceneContextPointer& sceneContext, const RenderContextPointer& renderContext) {