1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

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
+1
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 )
{