mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 14:15:42 +00:00
Set the event for group marker selection to the last real drawcall
This commit is contained in:
@@ -283,7 +283,20 @@ namespace renderdocui.Windows
|
||||
drawNode["Duration"] = Math.Max(0.0, (double)drawNode["Duration"]) + (double)drawNode.Nodes[i]["Duration"];
|
||||
}
|
||||
|
||||
drawNode.Tag = drawNode.Nodes.LastNode.Tag;
|
||||
bool found = false;
|
||||
|
||||
for (int i = drawcall.children.Length - 1; i >= 0; i--)
|
||||
{
|
||||
if ((drawcall.children[i].flags & DrawcallFlags.SetMarker) == 0)
|
||||
{
|
||||
drawNode.Tag = drawNode.Nodes[i].Tag;
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(!found)
|
||||
drawNode.Tag = drawNode.Nodes.LastNode.Tag;
|
||||
}
|
||||
|
||||
return drawNode;
|
||||
|
||||
Reference in New Issue
Block a user