diff --git a/profiler/src/profiler/TracyView_FlameGraph.cpp b/profiler/src/profiler/TracyView_FlameGraph.cpp index f25d0c46..61d85968 100644 --- a/profiler/src/profiler/TracyView_FlameGraph.cpp +++ b/profiler/src/profiler/TracyView_FlameGraph.cpp @@ -295,16 +295,16 @@ void View::DrawFlameGraphItem( const FlameGraphItem& item, FlameGraphContext& ct auto namehash = charutil::hash( name ); if( namehash == 0 ) namehash++; color = GetHsvColor( namehash, depth ); + if( sym->isInline ) + { + color = DarkenColorHalf( color ); + } } else { name = "???"; color = 0xFF888888; } - if( sym->isInline ) - { - color = DarkenColorHalf( color ); - } } const auto hiColor = HighlightColor( color );