We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ccec759 + 827bd6c commit b2bc566Copy full SHA for b2bc566
kivy/graphics/shader.pyx
@@ -421,6 +421,7 @@ cdef class Shader:
421
cdef void bind_vertex_format(self, VertexFormat vertex_format):
422
cdef unsigned int i
423
cdef vertex_attr_t *attr
424
+ cdef bytes name
425
426
# if the current vertex format used in the shader is the current one, do
427
# nothing.
@@ -445,7 +446,8 @@ cdef class Shader:
445
446
attr = &vertex_format.vattr[i]
447
if attr.per_vertex == 0:
448
continue
- attr.index = glGetAttribLocation(self.program, <char *><bytes>attr.name)
449
+ name = <bytes>attr.name
450
+ attr.index = glGetAttribLocation(self.program, <char *>name)
451
glEnableVertexAttribArray(attr.index)
452
453
# save for the next run.
0 commit comments