Ghost index is only available is statistics are enabled.

This commit is contained in:
Bartosz Taudul 2020-05-31 15:24:11 +02:00
parent 067189c355
commit 994b88f898

View File

@ -3441,7 +3441,9 @@ ThreadData* Worker::NewThread( uint64_t thread )
td->id = thread; td->id = thread;
td->count = 0; td->count = 0;
td->nextZoneId = 0; td->nextZoneId = 0;
#ifndef TRACY_NO_STATISTICS
td->ghostIdx = 0; td->ghostIdx = 0;
#endif
m_data.threads.push_back( td ); m_data.threads.push_back( td );
m_threadMap.emplace( thread, td ); m_threadMap.emplace( thread, td );
m_data.threadDataLast.first = thread; m_data.threadDataLast.first = thread;