From ded49edf4c9fb9482960113a6f33339ce7596cb6 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 10 Nov 2019 16:50:19 +0100 Subject: [PATCH] Fix magic vectors in single-threaded Vulkan tooltip. --- server/TracyView.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index d3cc5102..2385187e 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2248,7 +2248,15 @@ void View::DrawZones() { if( !it->second.timeline.empty() ) { - tid = m_worker.DecompressThread( (*it->second.timeline.begin())->Thread() ); + if( it->second.timeline.is_magic() ) + { + auto& tl = *(Vector*)&it->second.timeline; + tid = m_worker.DecompressThread( tl.begin()->Thread() ); + } + else + { + tid = m_worker.DecompressThread( (*it->second.timeline.begin())->Thread() ); + } } } TextFocused( "Thread:", m_worker.GetThreadName( tid ) );