From 73f441f6c38a56a2db77dc2c8fbd393655fd1bac Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 23 Jan 2026 14:05:01 +0000 Subject: [PATCH] Ensure annotations are displayed for default event on capture load --- qrenderdoc/Widgets/AnnotationDisplay.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qrenderdoc/Widgets/AnnotationDisplay.cpp b/qrenderdoc/Widgets/AnnotationDisplay.cpp index 32124b83f..a0b3f53a2 100644 --- a/qrenderdoc/Widgets/AnnotationDisplay.cpp +++ b/qrenderdoc/Widgets/AnnotationDisplay.cpp @@ -95,7 +95,9 @@ void AnnotationDisplay::RevealAnnotation(const rdcstr &keyPath) void AnnotationDisplay::OnCaptureLoaded() { - setAnnotationObject(NULL); + APIEvent ev = m_Ctx.GetEventBrowser()->GetAPIEventForEID(m_Ctx.CurSelectedEvent()); + + setAnnotationObject(ev.annotations); } void AnnotationDisplay::OnCaptureClosed()