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:
authorBartosz Taudul <bartosz.taudul@game-lion.com>2018-07-11 18:10:34 +0300
committerBartosz Taudul <bartosz.taudul@game-lion.com>2018-07-11 18:10:34 +0300
commitd0868b5004f4801e7c6027f1cb86041fe6e9ef14 (patch)
treedd8f919c4dcf7445e69a74ae195b9a42b4063eac /TracyOpenGL.hpp
parent0cbeea97a290cc1d263a2d7ed78e9cee6117c72b (diff)
Early exit in GpuCtx::Collect().
Diffstat (limited to 'TracyOpenGL.hpp')
-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;