Wait for ghost zones to be ready.

This commit is contained in:
Bartosz Taudul 2020-03-21 17:57:43 +01:00
parent 159cf8c477
commit 8aeba9dc79

View File

@ -2545,7 +2545,7 @@ void View::DrawZones()
if( m_vd.drawZones )
{
#ifndef TRACY_NO_STATISTICS
if( vis.ghost || ( m_vd.ghostZones && v->timeline.empty() ) )
if( m_worker.AreGhostZonesReady() && ( vis.ghost || ( m_vd.ghostZones && v->timeline.empty() ) ) )
{
depth = DispatchGhostLevel( v->ghostZones, hover, pxns, int64_t( nspx ), wpos, offset, 0, yMin, yMax, v->id );
}