mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 02:17:03 +00:00
Sigh, stupid OpenGL
Apparently glGetUniformIndices has different declarations on different systems.
This commit is contained in:
parent
4c0cf93562
commit
8624dbac2c
1 changed files with 1 additions and 1 deletions
|
|
@ -472,7 +472,7 @@ get_uniform_block_offsets(PyObject UNUSED *self, PyObject *args) {
|
|||
names[i] = PyUnicode_AsUTF8(t);
|
||||
Py_CLEAR(t);
|
||||
}
|
||||
glGetUniformIndices(program_id, count, (const GLchar * const*)names, indices);
|
||||
glGetUniformIndices(program_id, count, (void*)names, indices);
|
||||
glGetActiveUniformsiv(program_id, count, indices, GL_UNIFORM_OFFSET, offsets);
|
||||
for (GLsizei i = 0; i < count; i++) PyTuple_SET_ITEM(ans, i, PyLong_FromLong(offsets[i]));
|
||||
PyMem_Free(names); PyMem_Free(indices); PyMem_Free(offsets);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue