From 5e2390604d351dc897859606d50fe4cd405ee8aa Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 22 Feb 2020 23:20:59 +0100 Subject: [PATCH] Use proper check for "draw stack samples" option visibility. --- server/TracyView.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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();