From 9b7384b40746d8a60dbbb734f04ad21841796033 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 4 Aug 2019 00:33:31 +0200 Subject: [PATCH] Fix multiple GPU drift entry fields. --- server/TracyView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index cad624a7..5368f1e5 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -5281,7 +5281,9 @@ void View::DrawOptions() ImGui::TreePush(); auto& drift = GpuDrift( gpuData[i] ); ImGui::SetNextItemWidth( 120 ); + ImGui::PushID( i ); ImGui::InputInt( "Drift (ns/s)", &drift ); + ImGui::PopID(); if( timeline.size() > 1 ) { ImGui::SameLine();