mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-13 03:41:48 +00:00
Fix double separator in options, if no GPU zones are available.
This commit is contained in:
parent
9556878b23
commit
8624bb95ba
@ -7213,11 +7213,11 @@ void View::DrawOptions()
|
|||||||
m_vd.drawCpuUsageGraph = val;
|
m_vd.drawCpuUsageGraph = val;
|
||||||
ImGui::Unindent();
|
ImGui::Unindent();
|
||||||
}
|
}
|
||||||
ImGui::Separator();
|
|
||||||
|
|
||||||
const auto& gpuData = m_worker.GetGpuData();
|
const auto& gpuData = m_worker.GetGpuData();
|
||||||
if( !gpuData.empty() )
|
if( !gpuData.empty() )
|
||||||
{
|
{
|
||||||
|
ImGui::Separator();
|
||||||
val = m_vd.drawGpuZones;
|
val = m_vd.drawGpuZones;
|
||||||
#ifdef TRACY_EXTENDED_FONT
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
ImGui::Checkbox( ICON_FA_EYE " Draw GPU zones", &val );
|
ImGui::Checkbox( ICON_FA_EYE " Draw GPU zones", &val );
|
||||||
|
Loading…
Reference in New Issue
Block a user