mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 08:14:34 +00:00
Don't push the same zone on zone info stack multiple times.
This commit is contained in:
parent
06421cf5ca
commit
f0aadfe066
@ -9677,7 +9677,7 @@ void View::CenterAtTime( int64_t t )
|
|||||||
|
|
||||||
void View::ShowZoneInfo( const ZoneEvent& ev )
|
void View::ShowZoneInfo( const ZoneEvent& ev )
|
||||||
{
|
{
|
||||||
if( m_zoneInfoWindow )
|
if( m_zoneInfoWindow && m_zoneInfoWindow != &ev )
|
||||||
{
|
{
|
||||||
m_zoneInfoStack.push_back( m_zoneInfoWindow );
|
m_zoneInfoStack.push_back( m_zoneInfoWindow );
|
||||||
}
|
}
|
||||||
@ -9692,7 +9692,7 @@ void View::ShowZoneInfo( const ZoneEvent& ev )
|
|||||||
|
|
||||||
void View::ShowZoneInfo( const GpuEvent& ev, uint64_t thread )
|
void View::ShowZoneInfo( const GpuEvent& ev, uint64_t thread )
|
||||||
{
|
{
|
||||||
if( m_gpuInfoWindow )
|
if( m_gpuInfoWindow && m_gpuInfoWindow != &ev )
|
||||||
{
|
{
|
||||||
m_gpuInfoStack.push_back( m_gpuInfoWindow );
|
m_gpuInfoStack.push_back( m_gpuInfoWindow );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user