Skip to content

Commit a7760f8

Browse files
committed
release GIL when swapping opengl window
1 parent 116447a commit a7760f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src_c/window.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ window_flip(pgWindowObject *self)
202202
}
203203
}
204204
else {
205+
Py_BEGIN_ALLOW_THREADS;
205206
SDL_GL_SwapWindow(self->_win);
207+
Py_END_ALLOW_THREADS;
206208
}
207209
Py_RETURN_NONE;
208210
}

0 commit comments

Comments
 (0)