From 86270dac6db9cfee2b684600c8fe2a04ccf8520a Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 22 Sep 2024 13:00:30 +0200 Subject: [PATCH] Set unique ID for frame list invisible buttons. --- profiler/src/profiler/TracyView_FrameTimeline.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiler/src/profiler/TracyView_FrameTimeline.cpp b/profiler/src/profiler/TracyView_FrameTimeline.cpp index 83ee1b1c..3c099174 100644 --- a/profiler/src/profiler/TracyView_FrameTimeline.cpp +++ b/profiler/src/profiler/TracyView_FrameTimeline.cpp @@ -106,7 +106,9 @@ void View::DrawTimelineFrames( const FrameData& frames ) const auto ty025 = ty * 0.25f; const auto ty05 = round( ty * 0.5f ); + ImGui::PushID( &frames ); ImGui::InvisibleButton( "##zoneFrames", ImVec2( w, ty ) ); + ImGui::PopID(); bool hover = ImGui::IsItemHovered(); auto timespan = m_vd.zvEnd - m_vd.zvStart;