mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-15 00:29:22 +00:00
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:
6 files changed
+30
-7
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user