From ec1f104b44dce81d7ca846a4587b749e950d8a9a Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 12 Apr 2019 11:04:54 +0100 Subject: [PATCH] Shutdown capture file properly in python example --- docs/python_api/examples/renderdoc/display_window.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/python_api/examples/renderdoc/display_window.py b/docs/python_api/examples/renderdoc/display_window.py index acba07d85..e38ece785 100644 --- a/docs/python_api/examples/renderdoc/display_window.py +++ b/docs/python_api/examples/renderdoc/display_window.py @@ -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