Use proper check for "draw stack samples" option visibility.

This commit is contained in:
Bartosz Taudul 2020-02-22 23:20:59 +01:00
parent a650717c1d
commit 5e2390604d

View File

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