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