mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Add DrawFinished() to early exit paths.
This commit is contained in:
parent
e62a383833
commit
060bab357d
@ -27,10 +27,15 @@ void TimelineItem::Draw( bool firstFrame, const TimelineContext& ctx, int yOffse
|
||||
|
||||
if( !IsVisible() )
|
||||
{
|
||||
DrawFinished();
|
||||
if( m_height != 0 ) AdjustThreadHeight( firstFrame, yBegin, yEnd );
|
||||
return;
|
||||
}
|
||||
if( IsEmpty() ) return;
|
||||
if( IsEmpty() )
|
||||
{
|
||||
DrawFinished();
|
||||
return;
|
||||
}
|
||||
|
||||
const auto w = ctx.w;
|
||||
const auto ty = ctx.ty;
|
||||
|
Loading…
Reference in New Issue
Block a user