4
4
mirror of https://github.com/H-uru/korman.git synced 2025-07-13 18:17:38 -04:00

Fix __exit__ binding to wrong method, and enable the GCC warnings that

could catch this kind of thing (unused static function).
This commit is contained in:
2017-12-05 13:18:41 -08:00
parent 740da9c92b
commit cca1a90d1c
2 changed files with 5 additions and 1 deletions

View File

@ -368,7 +368,7 @@ static PyObject* pyGLTexture_store_in_mipmap(pyGLTexture* self, PyObject* args)
static PyMethodDef pyGLTexture_Methods[] = {
{ _pycs("__enter__"), (PyCFunction)pyGLTexture__enter__, METH_NOARGS, NULL },
{ _pycs("__exit__"), (PyCFunction)pyGLTexture__enter__, METH_VARARGS, NULL },
{ _pycs("__exit__"), (PyCFunction)pyGLTexture__exit__, METH_VARARGS, NULL },
{ _pycs("generate_mipmap"), (PyCFunction)pyGLTexture_generate_mipmap, METH_NOARGS, NULL },
{ _pycs("get_level_data"), (PyCFunction)pyGLTexture_get_level_data, METH_KEYWORDS | METH_VARARGS, NULL },