From d592af9c2f0be20b4c2508d6bc8505570196aced Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 20 Oct 2019 17:32:20 +0200 Subject: [PATCH] Fix TRACY_NO_STATISTICS build. --- server/TracyView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 30d41d03..26d51289 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -1295,6 +1295,7 @@ void View::DrawFrames() } int i = 0, idx = 0; +#ifndef TRACY_NO_STATISTICS if( m_worker.AreSourceLocationZonesReady() && m_findZone.show && !m_findZone.match.empty() ) { auto& zoneData = m_worker.GetZonesForSourceLocation( m_findZone.match[m_findZone.selMatch] ); @@ -1399,6 +1400,7 @@ void View::DrawFrames() } } else +#endif { while( i < onScreen && m_vd.frameStart + idx < total ) {