From 3589b46fab210d3a2e14cf049ea91afab5727742 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 12 Jun 2024 23:33:45 +0200 Subject: [PATCH] Don't try to shorten zone names starting with '['. --- profiler/src/profiler/TracyUtility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyUtility.cpp b/profiler/src/profiler/TracyUtility.cpp index 60d3f4e8..14746f39 100644 --- a/profiler/src/profiler/TracyUtility.cpp +++ b/profiler/src/profiler/TracyUtility.cpp @@ -19,7 +19,7 @@ constexpr const char* TypesList[] = { const char* ShortenZoneName( ShortenName type, const char* name, ImVec2& tsz, float zsz ) { assert( type != ShortenName::Never ); - if( name[0] == '<' ) return name; + if( name[0] == '<' || name[0] == '[' ) return name; if( type == ShortenName::Always ) zsz = 0; static char buf[64*1024];