mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Speculative fix for crash upload, make sure node index is valid
This commit is contained in:
@@ -281,7 +281,7 @@ namespace renderdocui.Windows
|
||||
drawNode.Nodes[drawNode.Nodes.Count - 2].Tag = drawNode.Nodes.LastNode.Tag;
|
||||
}
|
||||
|
||||
if ((double)drawNode.Nodes[i]["Duration"] > 0.0)
|
||||
if (i < drawNode.Nodes.Count && (double)drawNode.Nodes[i]["Duration"] > 0.0)
|
||||
drawNode["Duration"] = Math.Max(0.0, (double)drawNode["Duration"]) + (double)drawNode.Nodes[i]["Duration"];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user