mirror of
https://github.com/wolfpld/tracy
synced 2025-05-02 13:43:52 +00:00
Fix crash.
This commit is contained in:
parent
8eb038280f
commit
9cb54982cb
@ -3064,7 +3064,14 @@ void View::DrawZones()
|
|||||||
{
|
{
|
||||||
// FIXME
|
// FIXME
|
||||||
t0 = std::min( t0, _t0 );
|
t0 = std::min( t0, _t0 );
|
||||||
t1 = std::max( t1, std::min( m_worker.GetLastTime(), m_worker.GetZoneEnd( *td.second.timeline.back() ) ) );
|
if( td.second.timeline.is_magic() )
|
||||||
|
{
|
||||||
|
t1 = std::max( t1, std::min( m_worker.GetLastTime(), m_worker.GetZoneEnd( ((Vector<GpuEvent>*)&td.second.timeline)->back() ) ) );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
t1 = std::max( t1, std::min( m_worker.GetLastTime(), m_worker.GetZoneEnd( *td.second.timeline.back() ) ) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if( t0 < t1 )
|
if( t0 < t1 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user