From 8dae3437c564f3927deb62c0a251ee3a180540ba Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 1 Mar 2019 16:02:29 +0000 Subject: [PATCH] Make sure to stop looking once we find the python library --- renderdoc/replay/entry_points.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/renderdoc/replay/entry_points.cpp b/renderdoc/replay/entry_points.cpp index 9bfa42017..6007c2f88 100644 --- a/renderdoc/replay/entry_points.cpp +++ b/renderdoc/replay/entry_points.cpp @@ -869,7 +869,11 @@ extern "C" RENDERDOC_API int RENDERDOC_CC RENDERDOC_RunFunctionalTests(int pytho *ver = char('0' + pythonMinorVersion); handle = Process::LoadModule(py.c_str()); - RDCLOG("Loaded python from %s", py.c_str()); + if(handle) + { + RDCLOG("Loaded python from %s", py.c_str()); + break; + } } if(!handle)