From 956e082e5bdc90b4597773013d2e973a86845206 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 18 Jul 2026 15:33:43 +0200 Subject: [PATCH] ResetGraph lambda can't be static. --- profiler/src/profiler/TracyView_FlameGraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyView_FlameGraph.cpp b/profiler/src/profiler/TracyView_FlameGraph.cpp index 8badb3a7..50153caf 100644 --- a/profiler/src/profiler/TracyView_FlameGraph.cpp +++ b/profiler/src/profiler/TracyView_FlameGraph.cpp @@ -914,7 +914,7 @@ void View::DrawFlameGraph() ImGui::Begin( "Flame graph", &m_showFlameGraph, ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse ); if( ImGui::GetCurrentWindowRead()->SkipItems ) { ImGui::End(); return; } - static const auto ResetGraph = [this]() { + const auto ResetGraph = [this]() { m_flameGraphInvariant.Reset(); m_flameGraphViewStart = 0; m_flameGraphViewEnd = 0;