mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-14 12:04:35 +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;
|
vis.offset = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
bool& showFull = vis.showFull;
|
bool showFull = vis.showFull;
|
||||||
|
|
||||||
const auto yPos = AdjustThreadPosition( vis, wpos.y, offset );
|
const auto yPos = AdjustThreadPosition( vis, wpos.y, offset );
|
||||||
const auto oldOffset = offset;
|
const auto oldOffset = offset;
|
||||||
@ -2260,7 +2260,7 @@ void View::DrawZones()
|
|||||||
|
|
||||||
if( ImGui::IsMouseClicked( 0 ) )
|
if( ImGui::IsMouseClicked( 0 ) )
|
||||||
{
|
{
|
||||||
showFull = !showFull;
|
Vis( v ).showFull = !showFull;
|
||||||
}
|
}
|
||||||
if( last >= 0 && ImGui::IsMouseClicked( 2 ) )
|
if( last >= 0 && ImGui::IsMouseClicked( 2 ) )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user