1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 04:23:51 +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;
auto fis = m_frameImageStaging.find( fd->frames.size() );
if( fis != m_frameImageStaging.end() )
if( ev.name == 0 )
{
frameImage = fis->second;
m_frameImageStaging.erase( fis );
auto fis = m_frameImageStaging.find( fd->frames.size() );
if( fis != m_frameImageStaging.end() )
{
frameImage = fis->second;
m_frameImageStaging.erase( fis );
}
}
assert( fd->continuous == 1 );