Shader ControlFlow only add new merge points

Previously it would only test against the head of the existing merge points, now checks the whole array
This commit is contained in:
Jake Turner
2025-04-17 09:34:36 +01:00
parent 033a4d1e5a
commit a6f47d3061
+1 -1
View File
@@ -72,7 +72,7 @@ public:
void AddMergePoint(ExecutionPoint execPoint)
{
// only add a new merge point
if(execPoint != m_MergePoints.back())
if(!m_MergePoints.contains(execPoint))
m_MergePoints.push_back(execPoint);
m_StateChanged = true;
}