Fix double separator in options, if no GPU zones are available.

This commit is contained in:
Bartosz Taudul 2020-02-05 23:32:59 +01:00
parent 9556878b23
commit 8624bb95ba

View File

@ -7213,11 +7213,11 @@ void View::DrawOptions()
m_vd.drawCpuUsageGraph = val;
ImGui::Unindent();
}
ImGui::Separator();
const auto& gpuData = m_worker.GetGpuData();
if( !gpuData.empty() )
{
ImGui::Separator();
val = m_vd.drawGpuZones;
#ifdef TRACY_EXTENDED_FONT
ImGui::Checkbox( ICON_FA_EYE " Draw GPU zones", &val );