From 3c407eee51f7df0388fed11c0471a099cccabf60 Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Thu, 18 Dec 2025 16:45:22 +1300 Subject: [PATCH] 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 --- qrenderdoc/Code/QRDUtils.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qrenderdoc/Code/QRDUtils.cpp b/qrenderdoc/Code/QRDUtils.cpp index e5156dec0..0d42c7b49 100644 --- a/qrenderdoc/Code/QRDUtils.cpp +++ b/qrenderdoc/Code/QRDUtils.cpp @@ -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);