From 313253cd95e65bb522210c81aee96ba345b04569 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 21 Aug 2017 19:55:28 +0530 Subject: [PATCH] Add glFlush() and glFinish() bindings --- kitty/gl.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/kitty/gl.h b/kitty/gl.h index 711add9bb..c23d6709c 100644 --- a/kitty/gl.h +++ b/kitty/gl.h @@ -695,6 +695,17 @@ VertexAttribPointer(PyObject UNUSED *self, PyObject *args) { Py_RETURN_NONE; } +static PyObject* +Flush(PyObject UNUSED *self) { + glFinish(); + Py_RETURN_NONE; +} + +static PyObject* +Finish(PyObject UNUSED *self) { + glFinish(); + Py_RETURN_NONE; +} static PyObject* check_for_extensions(PyObject UNUSED *self) { @@ -807,4 +818,6 @@ int add_module_gl_constants(PyObject *module) { METH(NamedBufferData, METH_VARARGS) \ METH(GetBufferSubData, METH_VARARGS) \ METH(BlendFunc, METH_VARARGS) \ + METH(Finish, METH_NOARGS) \ + METH(Flush, METH_NOARGS) \