From 59ac93485e3efba23f79747e4348f4077e892b3c Mon Sep 17 00:00:00 2001 From: Zach Pomerantz Date: Mon, 25 Jan 2016 15:13:06 -0800 Subject: [PATCH] Propogate configuration changes through tasks --- libraries/render-utils/src/RenderShadowTask.cpp | 1 + libraries/render/src/render/Task.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libraries/render-utils/src/RenderShadowTask.cpp b/libraries/render-utils/src/RenderShadowTask.cpp index cc82079fd2..0771fcd9bf 100644 --- a/libraries/render-utils/src/RenderShadowTask.cpp +++ b/libraries/render-utils/src/RenderShadowTask.cpp @@ -121,6 +121,7 @@ RenderShadowTask::RenderShadowTask(CullFunctor cullFunctor) : Task(std::make_sha void RenderShadowTask::configure(const Config& configuration) { DependencyManager::get()->setShadowMapEnabled(configuration.enabled); + Task::configure(configuration); } void RenderShadowTask::run(const SceneContextPointer& sceneContext, const render::RenderContextPointer& renderContext) { diff --git a/libraries/render/src/render/Task.h b/libraries/render/src/render/Task.h index 89407a2e2b..e2678f2735 100644 --- a/libraries/render/src/render/Task.h +++ b/libraries/render/src/render/Task.h @@ -101,8 +101,6 @@ template void jobConfigure(T& model, const C& configuration) } template void jobConfigure(T&, const JobConfig&) { } -template void jobConfigure(T&, const TaskConfig&) { -} // FIXME: In c++17, use default classes of nullptr_t to combine these template void jobRun(T& model, const SceneContextPointer& sceneContext, const RenderContextPointer& renderContext) {