mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-12 02:27:08 +00:00
Add replay API initialisation/shutdown to python examples
This commit is contained in:
@@ -37,6 +37,8 @@ else:
|
||||
print('Usage: python3 {} filename.rdc'.format(sys.argv[0]))
|
||||
sys.exit(0)
|
||||
|
||||
rd.InitialiseReplay(rd.GlobalEnvironment(), [])
|
||||
|
||||
cap,controller = loadCapture(sys.argv[1])
|
||||
|
||||
# Use tkinter to create windows
|
||||
@@ -139,3 +141,6 @@ window.mainloop()
|
||||
controller.Shutdown()
|
||||
|
||||
cap.Shutdown()
|
||||
|
||||
if 'pyrenderdoc' not in globals():
|
||||
rd.ShutdownReplay()
|
||||
|
||||
Reference in New Issue
Block a user