mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-04 05:41:06 +00:00
GetParentMarker: Search children if first child is less than eventId
Handle case where action->eventId > eventId but the action contains the event being searched for
This commit is contained in:
@@ -1904,7 +1904,14 @@ static const ActionDescription *GetParentMarker(ICaptureContext &ctx, uint32_t e
|
||||
}
|
||||
}
|
||||
actions.pop_back();
|
||||
if(action->eventId < eventId)
|
||||
bool addChildren = (action->eventId < eventId);
|
||||
if(!addChildren)
|
||||
{
|
||||
if(!action->children.empty())
|
||||
addChildren = action->children[0].eventId < eventId;
|
||||
}
|
||||
|
||||
if(addChildren)
|
||||
{
|
||||
for(const ActionDescription &child : action->children)
|
||||
actions.push_back(&child);
|
||||
|
||||
Reference in New Issue
Block a user