mirror of
https://github.com/H-uru/korman.git
synced 2025-07-14 02:27:36 -04:00
Fix issues resulting from incorrect korlib merge
I merged the version with access violations related to textures not actually being set in OpenGL. Dang! Here is the correct version.
This commit is contained in:
@ -27,9 +27,14 @@ class PyObjectRef {
|
||||
|
||||
public:
|
||||
PyObjectRef(PyObject* o) : m_object(o) { }
|
||||
~PyObjectRef() { if (m_object) Py_DECREF(m_object); }
|
||||
~PyObjectRef() { Py_XDECREF(m_object); }
|
||||
|
||||
operator PyObject*() const { return m_object; }
|
||||
PyObjectRef& operator =(PyObject* rhs) {
|
||||
Py_XDECREF(m_object);
|
||||
m_object = rhs;
|
||||
return *this;
|
||||
}
|
||||
};
|
||||
|
||||
#endif // _KORLIB_H
|
||||
|
Reference in New Issue
Block a user