Don't try to draw GPU zones with no timing data.

This commit is contained in:
Bartosz Taudul 2017-11-15 00:08:21 +01:00 committed by Bartosz Taudul
parent 334224dd36
commit 1445341068

View File

@ -2406,6 +2406,7 @@ int View::DrawGpuZoneLevel( const Vector<GpuEvent*>& 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<int64_t>::max() ) break;
const auto zsz = ( end - ev.gpuStart ) * pxns;
if( zsz < MinVisSize )
{