Fix TRACY_NO_STATISTICS build.

This commit is contained in:
Bartosz Taudul 2019-10-20 17:32:20 +02:00
parent 5816dc2b11
commit d592af9c2f

View File

@ -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 )
{