mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Use proper index.
This commit is contained in:
parent
beea31edd0
commit
cd2f572a2f
@ -2888,9 +2888,9 @@ void Worker::ProcessFrameImage( const QueueFrameImage& ev )
|
|||||||
fi->ptr = (const char*)it->second;
|
fi->ptr = (const char*)it->second;
|
||||||
fi->w = ev.w;
|
fi->w = ev.w;
|
||||||
fi->h = ev.h;
|
fi->h = ev.h;
|
||||||
m_data.frameImage.push_back( fi );
|
|
||||||
|
|
||||||
const auto idx = m_data.frameImage.size();
|
const auto idx = m_data.frameImage.size();
|
||||||
|
m_data.frameImage.push_back( fi );
|
||||||
m_data.framesBase->frames.back().frameImage = idx;
|
m_data.framesBase->frames.back().frameImage = idx;
|
||||||
|
|
||||||
m_pendingFrameImageData.erase( it );
|
m_pendingFrameImageData.erase( it );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user