mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 02:17:03 +00:00
Fix #7013
This commit is contained in:
parent
eb5dd364ae
commit
9503725a32
1 changed files with 1 additions and 1 deletions
|
|
@ -1048,7 +1048,7 @@ draw_borders(ssize_t vao_idx, unsigned int num_border_rects, BorderRect *rect_bu
|
|||
|
||||
static bool
|
||||
attach_shaders(PyObject *sources, GLuint program_id, GLenum shader_type) {
|
||||
RAII_ALLOC(const GLchar*, c_sources, calloc(sizeof(GLchar*), PyTuple_GET_SIZE(sources)));
|
||||
RAII_ALLOC(const GLchar*, c_sources, calloc(PyTuple_GET_SIZE(sources), sizeof(GLchar*)));
|
||||
for (Py_ssize_t i = 0; i < PyTuple_GET_SIZE(sources); i++) {
|
||||
PyObject *temp = PyTuple_GET_ITEM(sources, i);
|
||||
if (!PyUnicode_Check(temp)) { PyErr_SetString(PyExc_TypeError, "shaders must be strings"); return false; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue