summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2025-02-03 12:24:47 +0100
committerGitHub <noreply@github.com>2025-02-03 12:24:47 +0100
commitba58e336bceb997f9d0d7be59ee923725f88b7b0 (patch)
tree32b8c3cf172928bff5b4c24a893f4ff49b68fbe9
parent5b73e2a3025bd41474913a26092d8160e1a21455 (diff)
parentf94e6cb73e1438eafb8219548d561fa69534f7ae (diff)
Merge pull request #13328 from Dentomologist/performancemetrics_call_imgui_end_unconditionally
PerformanceMetrics: Call ImGui::End() unconditionally
-rw-r--r--Source/Core/VideoCommon/PerformanceMetrics.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/PerformanceMetrics.cpp b/Source/Core/VideoCommon/PerformanceMetrics.cpp
index a3d41c9872..910b3c615e 100644
--- a/Source/Core/VideoCommon/PerformanceMetrics.cpp
+++ b/Source/Core/VideoCommon/PerformanceMetrics.cpp
@@ -183,8 +183,8 @@ void PerformanceMetrics::DrawImGuiStats(const float backbuffer_scale)
ImPlot::PopStyleColor(2);
}
ImGui::PopStyleVar();
- ImGui::End();
}
+ ImGui::End();
}
if (g_ActiveConfig.bShowSpeed)
@@ -205,8 +205,8 @@ void PerformanceMetrics::DrawImGuiStats(const float backbuffer_scale)
{
ImGui::TextColored(ImVec4(r, g, b, 1.0f), "Speed:%4.0lf%%", 100.0 * speed);
ImGui::TextColored(ImVec4(r, g, b, 1.0f), "Max:%6.0lf%%", 100.0 * GetMaxSpeed());
- ImGui::End();
}
+ ImGui::End();
}
if (g_ActiveConfig.bShowFPS || g_ActiveConfig.bShowFTimes)
@@ -235,8 +235,8 @@ void PerformanceMetrics::DrawImGuiStats(const float backbuffer_scale)
ImGui::TextColored(ImVec4(r, g, b, 1.0f), " ±:%6.2lfms",
DT_ms(m_fps_counter.GetDtStd()).count());
}
- ImGui::End();
}
+ ImGui::End();
}
if (g_ActiveConfig.bShowVPS || g_ActiveConfig.bShowVTimes)
@@ -265,8 +265,8 @@ void PerformanceMetrics::DrawImGuiStats(const float backbuffer_scale)
ImGui::TextColored(ImVec4(r, g, b, 1.0f), " ±:%6.2lfms",
DT_ms(m_vps_counter.GetDtStd()).count());
}
- ImGui::End();
}
+ ImGui::End();
}
ImGui::PopStyleVar(2);