Shutdown capture file properly in python example

This commit is contained in:
baldurk
2019-04-12 11:04:54 +01:00
parent e2a7ef3ceb
commit ec1f104b44
@@ -28,12 +28,12 @@ def loadCapture(filename):
if status != rd.ReplayStatus.Succeeded:
raise RuntimeError("Couldn't initialise replay: " + str(status))
return controller
return cap,controller
if 'pyrenderdoc' in globals():
raise RuntimeError("This sample should not be run within the RenderDoc UI")
else:
controller = loadCapture('test.rdc')
cap,controller = loadCapture('test.rdc')
# Use tkinter to create windows
import tkinter