From 697ea8b3b3128a9992a527021908a7ecff5a1a6b Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 14 Oct 2024 23:39:54 +0200 Subject: [PATCH] Mark debug builds. --- profiler/src/profiler/TracyView_NotificationArea.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/profiler/src/profiler/TracyView_NotificationArea.cpp b/profiler/src/profiler/TracyView_NotificationArea.cpp index 4fe92213..36ae6871 100644 --- a/profiler/src/profiler/TracyView_NotificationArea.cpp +++ b/profiler/src/profiler/TracyView_NotificationArea.cpp @@ -260,6 +260,12 @@ void View::DrawNotificationArea() const auto fps = RealToString( int( io.Framerate + 0.5f ) ); const auto fpssz = ImGui::CalcTextSize( fps ).x; ImGui::GetWindowDrawList()->AddText( wpos + ImVec2( w-fpssz, 0 ), 0x88FFFFFF, fps ); + +#ifndef NDEBUG + const auto dsz = ImGui::CalcTextSize( "8888 DEBUG" ).x; + ImGui::GetWindowDrawList()->AddText( wpos + ImVec2( w-dsz, 0 ), 0x886666FF, "DEBUG" ); +#endif + ImGui::PopFont(); }