mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Drawing locks may invalidate Vis() iterator.
This commit is contained in:
parent
80dff1ede1
commit
2aa6f70765
@ -2032,7 +2032,7 @@ void View::DrawZones()
|
||||
vis.offset = 0;
|
||||
continue;
|
||||
}
|
||||
bool& showFull = vis.showFull;
|
||||
bool showFull = vis.showFull;
|
||||
|
||||
const auto yPos = AdjustThreadPosition( vis, wpos.y, offset );
|
||||
const auto oldOffset = offset;
|
||||
@ -2260,7 +2260,7 @@ void View::DrawZones()
|
||||
|
||||
if( ImGui::IsMouseClicked( 0 ) )
|
||||
{
|
||||
showFull = !showFull;
|
||||
Vis( v ).showFull = !showFull;
|
||||
}
|
||||
if( last >= 0 && ImGui::IsMouseClicked( 2 ) )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user