Fix magic vectors in single-threaded Vulkan tooltip.

This commit is contained in:
Bartosz Taudul 2019-11-10 16:50:19 +01:00
parent 672093cf0e
commit ded49edf4c

View File

@ -2248,7 +2248,15 @@ void View::DrawZones()
{ {
if( !it->second.timeline.empty() ) if( !it->second.timeline.empty() )
{ {
tid = m_worker.DecompressThread( (*it->second.timeline.begin())->Thread() ); if( it->second.timeline.is_magic() )
{
auto& tl = *(Vector<GpuEvent>*)&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 ) ); TextFocused( "Thread:", m_worker.GetThreadName( tid ) );