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()