Add glFlush() and glFinish() bindings

This commit is contained in:
Kovid Goyal 2017-08-21 19:55:28 +05:30
parent 8c16be2ccd
commit 313253cd95
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -695,6 +695,17 @@ VertexAttribPointer(PyObject UNUSED *self, PyObject *args) {
Py_RETURN_NONE; 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* static PyObject*
check_for_extensions(PyObject UNUSED *self) { check_for_extensions(PyObject UNUSED *self) {
@ -807,4 +818,6 @@ int add_module_gl_constants(PyObject *module) {
METH(NamedBufferData, METH_VARARGS) \ METH(NamedBufferData, METH_VARARGS) \
METH(GetBufferSubData, METH_VARARGS) \ METH(GetBufferSubData, METH_VARARGS) \
METH(BlendFunc, METH_VARARGS) \ METH(BlendFunc, METH_VARARGS) \
METH(Finish, METH_NOARGS) \
METH(Flush, METH_NOARGS) \