mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
...
This commit is contained in:
@@ -316,7 +316,7 @@ ShaderSource(PyObject UNUSED *self, PyObject *args) {
|
|||||||
char *src; Py_ssize_t src_len = 0;
|
char *src; Py_ssize_t src_len = 0;
|
||||||
unsigned int shader_id;
|
unsigned int shader_id;
|
||||||
if(!PyArg_ParseTuple(args, "Is#", &shader_id, &src, &src_len)) return NULL;
|
if(!PyArg_ParseTuple(args, "Is#", &shader_id, &src, &src_len)) return NULL;
|
||||||
glShaderSource(shader_id, 1, (const GLchar * const*)&src, NULL);
|
glShaderSource(shader_id, 1, (const GLchar **)&src, NULL);
|
||||||
CHECK_ERROR;
|
CHECK_ERROR;
|
||||||
Py_RETURN_NONE;
|
Py_RETURN_NONE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user