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:
baldurk
2017-05-18 15:57:52 +01:00
parent 5ddf450ce2
commit 4eda46fd96
+5 -2
View File
@@ -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()