1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-02 21:53:52 +00:00

Attach pending frame images only to the main frame set.

This commit is contained in:
Bartosz Taudul 2020-06-30 00:53:26 +02:00
parent afbd6b8786
commit 763f5aafdd

View File

@ -4291,11 +4291,14 @@ void Worker::ProcessFrameMark( const QueueFrameMark& ev )
} ); } );
int32_t frameImage = -1; int32_t frameImage = -1;
auto fis = m_frameImageStaging.find( fd->frames.size() ); if( ev.name == 0 )
if( fis != m_frameImageStaging.end() )
{ {
frameImage = fis->second; auto fis = m_frameImageStaging.find( fd->frames.size() );
m_frameImageStaging.erase( fis ); if( fis != m_frameImageStaging.end() )
{
frameImage = fis->second;
m_frameImageStaging.erase( fis );
}
} }
assert( fd->continuous == 1 ); assert( fd->continuous == 1 );