From 8aeba9dc79561221f52b1b3cca3656aa44c34709 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 21 Mar 2020 17:57:43 +0100 Subject: [PATCH] Wait for ghost zones to be ready. --- server/TracyView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 69fa7565..05884bfc 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -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 ); }