Check global handle from correct object in extension loading

This commit is contained in:
baldurk
2026-03-13 18:21:08 +00:00
parent 337f5f20e5
commit 403725f69f
@@ -654,9 +654,9 @@ QString PythonContext::LoadExtension(ICaptureContext &ctx, const rdcstr &extensi
PyObject *ext = NULL;
current_global_handle = PyObject_SafeGetAttrString(main_dict, "_renderdoc_internal");
current_global_handle = PyObject_SafeGetAttrString(sysobj, "_renderdoc_internal");
if(!syspath)
if(!current_global_handle)
qCritical() << "couldn't get _renderdoc_internal";
QString typeStr;