Graphics/FrameGraph: Fix infinite recursion when traversing graph

This commit is contained in:
Jérôme Leclercq 2021-06-01 16:24:14 +02:00
parent 43b73da3f4
commit 6fe7e5b16b
1 changed files with 4 additions and 1 deletions

View File

@ -893,10 +893,13 @@ namespace Nz
{
const PassList& dependencyPassList = it->second;
for (std::size_t dependencyPass : dependencyPassList)
{
if (dependencyPass != passIndex)
TraverseGraph(dependencyPass);
}
}
}
}
void FrameGraph::RemoveDuplicatePasses()
{