From 1445341068877da7f99e64632b2a11a5ea2f9816 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 15 Nov 2017 00:08:21 +0100 Subject: [PATCH] Don't try to draw GPU zones with no timing data. --- server/TracyView.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index db765907..ac1f8f68 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2406,6 +2406,7 @@ int View::DrawGpuZoneLevel( const Vector& vec, bool hover, double pxn auto& srcloc = GetSourceLocation( ev.srcloc ); const auto color = GetZoneColor( ev ); const auto end = GetZoneEnd( ev ); + if( end == std::numeric_limits::max() ) break; const auto zsz = ( end - ev.gpuStart ) * pxns; if( zsz < MinVisSize ) {