ResetGraph lambda can't be static.

This commit is contained in:
Bartosz Taudul
2026-07-18 15:33:43 +02:00
parent be6377f81b
commit 956e082e5b

View File

@@ -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;