diff --git a/TracyOpenGL.hpp b/TracyOpenGL.hpp index 8306ae37..ea7d3be5 100644 --- a/TracyOpenGL.hpp +++ b/TracyOpenGL.hpp @@ -90,6 +90,8 @@ public: #ifndef TRACY_ON_DEMAND ZoneScopedC( Color::Red4 ); + if( m_tail == m_head ) return; + auto start = m_tail; auto end = m_head + QueryCount; auto cnt = ( end - start ) % QueryCount;