Skip to content

Commit

Permalink
HnProcessSelectionTask: fixed minor issue with async pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Aug 18, 2024
1 parent b8348d1 commit 4d8ff63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Hydrogent/src/Tasks/HnProcessSelectionTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ void HnProcessSelectionTask::Sync(pxr::HdSceneDelegate* Delegate,

void HnProcessSelectionTask::PrepareTechniques(TEXTURE_FORMAT RTVFormat)
{
if (m_InitTech.IsDirty || (m_InitTech.PSO && m_InitTech.PSO->GetGraphicsPipelineDesc().RTVFormats[0] != RTVFormat))
if (m_InitTech.IsDirty || (m_InitTech.PSO && m_InitTech.PSO->GetStatus() == PIPELINE_STATE_STATUS_READY && m_InitTech.PSO->GetGraphicsPipelineDesc().RTVFormats[0] != RTVFormat))
m_InitTech.PSO.Release();
if (m_UpdateTech.IsDirty || (m_UpdateTech.PSO && m_UpdateTech.PSO->GetGraphicsPipelineDesc().RTVFormats[0] != RTVFormat))
if (m_UpdateTech.IsDirty || (m_UpdateTech.PSO && m_UpdateTech.PSO->GetStatus() == PIPELINE_STATE_STATUS_READY && m_UpdateTech.PSO->GetGraphicsPipelineDesc().RTVFormats[0] != RTVFormat))
m_UpdateTech.PSO.Release();

if (m_InitTech.PSO && m_UpdateTech.PSO)
Expand Down

0 comments on commit 4d8ff63

Please sign in to comment.