forked from blender/blender
Hydra code cleanup #81
@ -50,11 +50,6 @@ void FinalEngine::render()
|
||||
light_tasks_delegate_->set_viewport(pxr::GfVec4d(0, 0, width, height));
|
||||
}
|
||||
|
||||
render_task_delegate_->add_aov(pxr::HdAovTokens->color);
|
||||
if (bl_engine_->type->flag & RE_USE_GPU_CONTEXT) {
|
||||
render_task_delegate_->add_aov(pxr::HdAovTokens->depth);
|
||||
}
|
||||
|
||||
RenderResult *rr = RE_engine_get_result(bl_engine_);
|
||||
RenderLayer *rlayer = (RenderLayer *)rr->layers.first;
|
||||
LISTBASE_FOREACH (RenderPass *, rpass, &rlayer->passes) {
|
||||
@ -65,6 +60,11 @@ void FinalEngine::render()
|
||||
}
|
||||
render_task_delegate_->add_aov(*aov_token);
|
||||
}
|
||||
if (bl_engine_->type->flag & RE_USE_GPU_CONTEXT) {
|
||||
/* For GPU context engine color and depth AOVs has to be added anyway */
|
||||
render_task_delegate_->add_aov(pxr::HdAovTokens->color);
|
||||
render_task_delegate_->add_aov(pxr::HdAovTokens->depth);
|
||||
}
|
||||
|
||||
pxr::HdTaskSharedPtrVector tasks;
|
||||
if (light_tasks_delegate_) {
|
||||
|
Loading…
Reference in New Issue
Block a user