Don't bake DrawcallTreeNodes too early, just copy children across.

* Fixes markers within deferred contexts from not showing their children
  in the event browser (although they would still replay the events)
This commit is contained in:
baldurk
2014-06-16 21:10:20 +01:00
parent a9df1e4ef2
commit ecbbd98950
@@ -4047,10 +4047,13 @@ bool WrappedID3D11DeviceContext::Serialise_ExecuteCommandList(ID3D11CommandList
draw.debugMessages = debugMessages;
if(m_CmdLists.find(cmdList) != m_CmdLists.end())
draw.children = m_CmdLists[cmdList].Bake();
AddDrawcall(draw, true);
auto cmdDrawChildren = m_CmdLists.find(cmdList);
if(!m_DrawcallStack.empty() && !m_DrawcallStack.back()->children.empty() &&
cmdDrawChildren != m_CmdLists.end())
m_DrawcallStack.back()->children.back().children = cmdDrawChildren->second.children;
}
return true;