Release GIL when swapping buffers

This commit is contained in:
Kovid Goyal 2016-12-01 12:47:50 +05:30
parent c9b34e98f9
commit 58c3a5b4ac

View File

@ -202,7 +202,9 @@ dealloc(Window* self) {
static PyObject*
swap_buffers(Window *self) {
Py_BEGIN_ALLOW_THREADS;
glfwSwapBuffers(self->window);
Py_END_ALLOW_THREADS;
Py_RETURN_NONE;
}