Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TracyOpenGL.hpp2
1 files changed, 2 insertions, 0 deletions
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;