mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Last time should never be zero.
This commit is contained in:
parent
5e9b2e36be
commit
4424a7d7e8
@ -864,7 +864,8 @@ int64_t Worker::GetFrameTime( const FrameData& fd, size_t idx ) const
|
||||
}
|
||||
else
|
||||
{
|
||||
return m_data.lastTime == 0 ? 0 : m_data.lastTime - fd.frames.back();
|
||||
assert( m_data.lastTime != 0 );
|
||||
return m_data.lastTime - fd.frames.back();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user