mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Use proper check for "draw stack samples" option visibility.
This commit is contained in:
parent
a650717c1d
commit
5e2390604d
@ -7300,6 +7300,10 @@ void View::DrawOptions()
|
|||||||
#endif
|
#endif
|
||||||
m_vd.drawCpuUsageGraph = val;
|
m_vd.drawCpuUsageGraph = val;
|
||||||
ImGui::Unindent();
|
ImGui::Unindent();
|
||||||
|
}
|
||||||
|
|
||||||
|
if( m_worker.GetCallstackSampleCount() != 0 )
|
||||||
|
{
|
||||||
val = m_vd.drawSamples;
|
val = m_vd.drawSamples;
|
||||||
#ifdef TRACY_EXTENDED_FONT
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
ImGui::Checkbox( ICON_FA_EYE_DROPPER " Draw stack samples", &val );
|
ImGui::Checkbox( ICON_FA_EYE_DROPPER " Draw stack samples", &val );
|
||||||
@ -7307,7 +7311,6 @@ void View::DrawOptions()
|
|||||||
ImGui::Checkbox( "Draw stack samples", &val );
|
ImGui::Checkbox( "Draw stack samples", &val );
|
||||||
#endif
|
#endif
|
||||||
m_vd.drawSamples = val;
|
m_vd.drawSamples = val;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto& gpuData = m_worker.GetGpuData();
|
const auto& gpuData = m_worker.GetGpuData();
|
||||||
|
Loading…
Reference in New Issue
Block a user