mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-08 21:31:36 +00:00
Fix summing of durations in event browser
This commit is contained in:
1 parent
3b6f63be0d
commit
63bf0310d3
1 file changed
+1
-1
@@ -296,7 +296,7 @@ void EventBrowser::SetDrawcallTimes(RDTreeWidgetItem *node,
|
||||
{
|
||||
SetDrawcallTimes(node->child(i), results);
|
||||
|
||||
double nd = node->tag().value<EventItemTag>().duration;
|
||||
double nd = node->child(i)->tag().value<EventItemTag>().duration;
|
||||
|
||||
if(nd > 0.0)
|
||||
duration += nd;
|
||||
|
||||
Reference in new issue
Block a user