From 8a26e3979272d291999ff3ee24e1540e2c2d0c72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 24 Aug 2026 09:29:37 +0200 Subject: [PATCH] Fix ImDebugger bug --- UI/ImDebugger/ImGe.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/UI/ImDebugger/ImGe.cpp b/UI/ImDebugger/ImGe.cpp index 4457f661e2..a86566430c 100644 --- a/UI/ImDebugger/ImGe.cpp +++ b/UI/ImDebugger/ImGe.cpp @@ -1187,15 +1187,14 @@ void ImGeDebuggerWindow::Draw(ImConfig &cfg, ImControl &control, GPUCommon *gpuD if (ImGui::RepeatButtonShift("Single step", fastRepeatRate)) { gpuDebug->SetBreakNext(GPUDebug::BreakNext::OP); } + if (disableStepButtons) { + ImGui::EndDisabled(); + } ImGui::SameLine(); if (ImGui::Button("Cancel step")) { gpuDebug->ClearBreakNext(); } - if (disableStepButtons) { - ImGui::EndDisabled(); - } - ImGui::Text("%d/%d", gpuDebug->PrimsThisFrame(), gpuDebug->PrimsLastFrame()); if (disableStepButtons) {