From 4d34ccc30cdec7f625de9b77d9974d74a549f237 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 19 Mar 2018 16:11:44 +0100 Subject: [PATCH] Unify zone info window thread retrieval. --- server/TracyView.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 95572a92..d4be34da 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2522,17 +2522,18 @@ void View::DrawGpuInfoWindow() ImGui::Separator(); + const auto tid = GetZoneThread( ev ); const auto& srcloc = m_worker.GetSourceLocation( ev.srcloc ); ImGui::Text( "Zone name: %s", m_worker.GetString( srcloc.name ) ); ImGui::Text( "Function: %s", m_worker.GetString( srcloc.function ) ); ImGui::Text( "Location: %s:%i", m_worker.GetString( srcloc.file ), srcloc.line ); - ImGui::Text( "Thread: %s", m_worker.GetThreadString( m_gpuInfoWindowThread ) ); + ImGui::Text( "Thread: %s", m_worker.GetThreadString( tid ) ); ImGui::SameLine(); ImGui::TextDisabled( "(id)" ); if( ImGui::IsItemHovered() ) { ImGui::BeginTooltip(); - ImGui::Text( "0x%" PRIX64, m_gpuInfoWindowThread ); + ImGui::Text( "0x%" PRIX64, tid ); ImGui::EndTooltip(); }