From 5fd0dc569b5d74883a081f6d9bbcebf1394e52ab Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 24 May 2026 14:55:59 +0200 Subject: [PATCH] Make impact option active only if hw samples are enabled. --- profiler/src/profiler/TracySourceView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiler/src/profiler/TracySourceView.cpp b/profiler/src/profiler/TracySourceView.cpp index 82238d75..00707d0a 100644 --- a/profiler/src/profiler/TracySourceView.cpp +++ b/profiler/src/profiler/TracySourceView.cpp @@ -1020,7 +1020,9 @@ void SourceView::RenderSymbolView( Worker& worker, View& view ) { SmallCheckbox( ICON_FA_HAMMER " HW", &m_hwSamples ); ImGui::SameLine(); + if( !m_hwSamples ) ImGui::BeginDisabled(); SmallCheckbox( ICON_FA_CAR_BURST " Impact", &m_hwSamplesRelative ); + if( !m_hwSamples ) ImGui::EndDisabled(); ImGui::SameLine(); ImGui::Spacing(); ImGui::SameLine();