fix for own mistake [#29031] Importing BGL Can Crash the BGE and Blender

was adding the Buffer type to the module without increffing
This commit is contained in:
2011-12-23 05:42:06 +00:00
parent 27b47892a0
commit b59d8c6ba3

View File

@@ -1304,6 +1304,7 @@ PyObject *BPyInit_bgl(void)
PyModule_AddObject(submodule, "Buffer", (PyObject *)&BGL_bufferType);
Py_INCREF((PyObject *)&BGL_bufferType);
#define EXPP_ADDCONST(x) PyDict_SetItemString(dict, #x, item=PyLong_FromLong((int)x)); Py_DECREF(item)