Graphics/FrameGraph: Fix infinite recursion when traversing graph
This commit is contained in:
parent
43b73da3f4
commit
6fe7e5b16b
|
|
@ -893,7 +893,10 @@ namespace Nz
|
|||
{
|
||||
const PassList& dependencyPassList = it->second;
|
||||
for (std::size_t dependencyPass : dependencyPassList)
|
||||
TraverseGraph(dependencyPass);
|
||||
{
|
||||
if (dependencyPass != passIndex)
|
||||
TraverseGraph(dependencyPass);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue