mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Fix summing of durations in event browser
This commit is contained in:
@@ -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