diff --git a/qrenderdoc/Code/qrenderdoc.cpp b/qrenderdoc/Code/qrenderdoc.cpp index e9eb158af..6c7a377c3 100644 --- a/qrenderdoc/Code/qrenderdoc.cpp +++ b/qrenderdoc/Code/qrenderdoc.cpp @@ -159,19 +159,19 @@ int main(int argc, char *argv[]) GUIInvoke::init(); - CaptureContext ctx(filename, remoteHost, remoteIdent, temp, config); - PythonContext::GlobalInit(); - - while(ctx.isRunning()) { - application.processEvents(QEventLoop::WaitForMoreEvents); - QCoreApplication::sendPostedEvents(); + CaptureContext ctx(filename, remoteHost, remoteIdent, temp, config); + + while(ctx.isRunning()) + { + application.processEvents(QEventLoop::WaitForMoreEvents); + QCoreApplication::sendPostedEvents(); + } + + config.Save(); } - PythonContext::GlobalShutdown(); - - config.Save(); } delete[] argv_mod;