mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-28 18:31:40 +00:00
Fix compilation of PythonCaptureViewer
This commit is contained in:
@@ -957,7 +957,7 @@ to a marker region.
|
||||
|
||||
protected:
|
||||
ICaptureViewer() = default;
|
||||
~ICaptureViewer() = default;
|
||||
virtual ~ICaptureViewer() = default;
|
||||
};
|
||||
|
||||
DECLARE_REFLECTION_STRUCT(ICaptureViewer);
|
||||
|
||||
@@ -95,7 +95,7 @@ TEMPLATE_ARRAY_DECLARE(rdcarray);
|
||||
}
|
||||
}
|
||||
|
||||
~PythonCaptureViewer()
|
||||
virtual ~PythonCaptureViewer()
|
||||
{
|
||||
Py_DECREF(self);
|
||||
}
|
||||
@@ -122,6 +122,7 @@ TEMPLATE_ARRAY_DECLARE(rdcarray);
|
||||
|
||||
SWIGINTERN PyObject *capviewer_deinit(PyObject *self, PyObject *args)
|
||||
{
|
||||
PythonCaptureViewer *viewer = NULL;
|
||||
void *ptr = NULL;
|
||||
int res = SWIG_ConvertPtr(self, &ptr, SWIGTYPE_p_ICaptureViewer, SWIG_POINTER_DISOWN | 0);
|
||||
|
||||
@@ -130,7 +131,7 @@ TEMPLATE_ARRAY_DECLARE(rdcarray);
|
||||
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "delete_CaptureViewer" "', argument " "1"" of type '" "CaptureViewer *""'");
|
||||
}
|
||||
|
||||
PythonCaptureViewer *viewer = (PythonCaptureViewer *)ptr;
|
||||
viewer = (PythonCaptureViewer *)ptr;
|
||||
delete viewer;
|
||||
|
||||
return SWIG_Py_Void();
|
||||
|
||||
Reference in New Issue
Block a user