Implement shutting down individual replay outputs

* This means e.g. that if the mesh output view gets closed, we don't
  keep it around internally and keep calling InitPostVSBuffers for it.
This commit is contained in:
baldurk committed 2017-11-10 12:22:13 +00:00
1 parent 241b8f4404
commit 954a11de89
6 files changed
+30 -7

No files matched your search

+11 -1
View File
@@ -1427,7 +1427,17 @@ ReplayOutput *ReplayController::CreateOutput(WindowingSystem system, void *data,
void ReplayController::ShutdownOutput(IReplayOutput *output)
{
RDCUNIMPLEMENTED("Shutting down individual outputs");
for(auto it = m_Outputs.begin(); it != m_Outputs.end(); ++it)
{
if((IReplayOutput *)*it == output)
{
delete *it;
m_Outputs.erase(it);
return;
}
}
RDCERR("Unrecognised output");
}
void ReplayController::Shutdown()