mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 13:30:44 +00:00
Don't re-cache same types if AddDebugType is called again
This commit is contained in:
@@ -6434,6 +6434,12 @@ ScopedDebugData *Debugger::AddScopedDebugData(const DXIL::Metadata *scopeMD)
|
||||
|
||||
const TypeData &Debugger::AddDebugType(const DXIL::Metadata *typeMD)
|
||||
{
|
||||
{
|
||||
auto it = m_DebugInfo.types.find(typeMD);
|
||||
if(it != m_DebugInfo.types.end())
|
||||
return it->second;
|
||||
}
|
||||
|
||||
TypeData typeData;
|
||||
|
||||
const DXIL::DIBase *base = typeMD->dwarf;
|
||||
|
||||
Reference in New Issue
Block a user