Fixed rendering for MacOS #82

Merged
Bogdan Nagirniak merged 10 commits from BLEN-473 into hydra-render 2023-08-02 09:37:25 +02:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 008cdd2e52 - Show all commits

View File

@ -69,7 +69,9 @@ void FinalEngine::render(Depsgraph *depsgraph)
pxr::HdTaskSharedPtrVector tasks;
if (light_tasks_delegate_) {
if (scene->r.alphamode != R_ALPHAPREMUL) {
#ifndef __APPLE__
tasks.push_back(light_tasks_delegate_->skydome_task());
#endif
}
tasks.push_back(light_tasks_delegate_->simple_task());
}

View File

@ -240,11 +240,11 @@ void ViewportEngine::render(Depsgraph *depsgraph, bContext *context)
pxr::HdTaskSharedPtrVector tasks;
if (light_tasks_delegate_) {
#ifndef __APPLE__
if (scene->r.alphamode != R_ALPHAPREMUL) {
#ifndef __APPLE__
tasks.push_back(light_tasks_delegate_->skydome_task());
}
#endif
}
tasks.push_back(light_tasks_delegate_->simple_task());
}
tasks.push_back(render_task_delegate_->task());