mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Don't try to draw GPU zones with no timing data.
This commit is contained in:
parent
334224dd36
commit
1445341068
@ -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 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user