diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 9e93d3fb..61687f14 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -7300,6 +7300,10 @@ void View::DrawOptions() #endif m_vd.drawCpuUsageGraph = val; ImGui::Unindent(); + } + + if( m_worker.GetCallstackSampleCount() != 0 ) + { val = m_vd.drawSamples; #ifdef TRACY_EXTENDED_FONT ImGui::Checkbox( ICON_FA_EYE_DROPPER " Draw stack samples", &val ); @@ -7307,7 +7311,6 @@ void View::DrawOptions() ImGui::Checkbox( "Draw stack samples", &val ); #endif m_vd.drawSamples = val; - } const auto& gpuData = m_worker.GetGpuData();