mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Properly initialise and teardown replay during qrenderdoc unit tests
This commit is contained in:
@@ -279,6 +279,11 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
GlobalEnvironment env;
|
||||
env.enumerateGPUs = false;
|
||||
rdcarray<rdcstr> coreargs;
|
||||
RENDERDOC_InitialiseReplay(env, coreargs);
|
||||
|
||||
{
|
||||
QCoreApplication application(argc, mod_argv);
|
||||
PythonContext::GlobalInit();
|
||||
@@ -302,8 +307,12 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
logstream << "Python bindings are consistent.\n";
|
||||
}
|
||||
|
||||
PythonContext::GlobalShutdown();
|
||||
}
|
||||
|
||||
RENDERDOC_ShutdownReplay();
|
||||
|
||||
logbuf.finish();
|
||||
|
||||
delete[] alloc_argv;
|
||||
|
||||
Reference in New Issue
Block a user