Showing the changes to libraries/render-utils/src/RenderDeferredTask.cpp (1 of 9 files). Show all
Unified · Split
| @@ -228,26 +228,6 @@ RenderDeferredTask::RenderDeferredTask(CullFunctor cullFunctor) { · 227 unmodified lines | ||
| 228 | 228 | |
| 229 | 229 | } |
| 230 | 230 | |
| 231 | −void RenderDeferredTask::run(const SceneContextPointer& sceneContext, const RenderContextPointer& renderContext) { | |
| 232 | − // sanity checks | |
| 233 | − assert(sceneContext); | |
| 234 | − if (!sceneContext->_scene) { | |
| 235 | − return; | |
| 236 | − } | |
| 237 | − | |
| 238 | − | |
| 239 | − // Is it possible that we render without a viewFrustum ? | |
| 240 | − if (!(renderContext->args && renderContext->args->hasViewFrustum())) { | |
| 241 | − return; | |
| 242 | − } | |
| 243 | − | |
| 244 | − auto config = std::static_pointer_cast<Config>(renderContext->jobConfig); | |
| 245 | − | |
| 246 | − for (auto job : _jobs) { | |
| 247 | − job.run(sceneContext, renderContext); | |
| 248 | − } | |
| 249 | −} | |
| 250 | − | |
| 251 | 231 | void BeginGPURangeTimer::run(const render::SceneContextPointer& sceneContext, const render::RenderContextPointer& renderContext, gpu::RangeTimerPointer& timer) { |
| 252 | 232 | timer = _gpuTimer; |
| 253 | 233 | gpu::doInBatch(renderContext->args->_context, [&](gpu::Batch& batch) { |