mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +00:00
Don't print to stdout/stderr in captured programs
* Otherwise it could interfere with normal functioning. Especially if we run a script that then runs ls or dirname or pwd or something, and we start printing logging messages! Oops.
This commit is contained in:
@@ -337,8 +337,11 @@ void RenderDoc::Initialise()
|
||||
}
|
||||
|
||||
// begin printing to stdout/stderr after this point, earlier logging is debugging
|
||||
// cruft that we don't want cluttering output
|
||||
RDCLOGOUTPUT();
|
||||
// cruft that we don't want cluttering output.
|
||||
// However we don't want to print in captured applications, since they may be outputting important
|
||||
// information to stdout/stderr and being piped around and processed!
|
||||
if(IsReplayApp())
|
||||
RDCLOGOUTPUT();
|
||||
}
|
||||
|
||||
RenderDoc::~RenderDoc()
|
||||
|
||||
Reference in New Issue
Block a user