Pass changes: fixed reflection probe bake

This commit is contained in:
antonmic
2021-06-10 22:54:12 -07:00
parent 3ea74e017f
commit 2a40010089
2 changed files with 2 additions and 4 deletions
@@ -107,11 +107,7 @@ namespace AZ
pipeline->m_originalRenderSettings = desc.m_renderSettings;
pipeline->m_activeRenderSettings = desc.m_renderSettings;
pipeline->m_rootPass->SetRenderPipeline(pipeline);
// Manually build the pipeline so we can gather the view tags from it's passes
pipeline->m_rootPass->ManualPipelineBuildAndInitialize();
pipeline->BuildPipelineViews();
}
RenderPipeline::~RenderPipeline()
@@ -289,6 +289,8 @@ namespace AZ
}
pipeline->OnAddedToScene(this);
PassSystemInterface::Get()->ProcessQueuedChanges();
pipeline->BuildPipelineViews();
// Force to update the lookup table since adding render pipeline would effect any pipeline states created before pass system tick
RebuildPipelineStatesLookup();