From d0868b5004f4801e7c6027f1cb86041fe6e9ef14 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 11 Jul 2018 17:10:34 +0200 Subject: Early exit in GpuCtx::Collect(). --- TracyOpenGL.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'TracyOpenGL.hpp') 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; -- cgit v1.2.3