mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 08:40:55 +00:00
Search up the parent heirarchy for a DockContent
* Fixes a crash debugging a shader that has embedded source available (i.e. compiled with D3DCOMPILE_DEBUG).
This commit is contained in:
@@ -580,7 +580,19 @@ namespace renderdocui.Windows
|
||||
AddFileList();
|
||||
|
||||
if (trace != null || sel == null)
|
||||
sel = (DockContent)m_DisassemblyView.Parent;
|
||||
{
|
||||
Control p = m_DisassemblyView.Parent;
|
||||
while (p != null)
|
||||
{
|
||||
if (p is DockContent)
|
||||
{
|
||||
sel = (DockContent)p;
|
||||
break;
|
||||
}
|
||||
|
||||
p = p.Parent;
|
||||
}
|
||||
}
|
||||
|
||||
sel.Show();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user