From 60f461d94dcbf5378c92ae6e863886593edc5bc4 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 16 Oct 2024 00:28:24 +0200 Subject: [PATCH] Add debug build note to about window. --- profiler/src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index e459b446..0a37a309 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -729,6 +729,13 @@ static void DrawContents() ImGui::SetClipboardText( tracy::GitRef ); } } +#ifndef NDEBUG + ImGui::PushFont( s_smallFont ); + ImGui::PushStyleColor( ImGuiCol_Text, ImVec4( 1.f, 0.5f, 0.5f, 1.f ) ); + tracy::TextCentered( "Debug build" ); + ImGui::PopStyleColor(); + ImGui::PopFont(); +#endif ImGui::Spacing(); ImGui::TextUnformatted( "A real time, nanosecond resolution, remote telemetry, hybrid\nframe and sampling profiler for games and other applications." ); ImGui::Spacing();