mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-06 08:55:30 +00:00
Require symbol data for the entry stacks button in symbol view.
The button was gated on the entry stack maps being non-empty, but the sample entry stacks window also needs the symbol data to display anything. Without it, clicking the button silently closed the window through its null guard. Match the gate used by the statistics window menu items.
This commit is contained in:
@@ -766,7 +766,7 @@ void SourceView::RenderSymbolView( Worker& worker, View& view, WindowConstraints
|
||||
if( worker.AreCallstackSamplesReady() )
|
||||
{
|
||||
const auto stats = worker.GetSymbolStats( m_symAddr );
|
||||
if( stats && !stats->wasReached.empty() )
|
||||
if( stats && !stats->wasReached.empty() && worker.GetSymbolData( m_symAddr ) )
|
||||
{
|
||||
ImGui::SameLine();
|
||||
ImGui::AlignTextToFramePadding();
|
||||
|
||||
Reference in New Issue
Block a user