mirror of
https://github.com/3b1b/manim.git
synced 2025-07-27 20:12:24 +08:00
No need to call tobytes
This commit is contained in:
@ -414,7 +414,7 @@ class Camera(object):
|
|||||||
indices = shader_wrapper.vert_indices
|
indices = shader_wrapper.vert_indices
|
||||||
if indices is not None:
|
if indices is not None:
|
||||||
vert_data = vert_data[indices]
|
vert_data = vert_data[indices]
|
||||||
vbo = self.ctx.buffer(vert_data.tobytes())
|
vbo = self.ctx.buffer(vert_data)
|
||||||
# For the moment, the index buffer is actually not used,
|
# For the moment, the index buffer is actually not used,
|
||||||
# since it seems to make the actual render calls meaninfully slower
|
# since it seems to make the actual render calls meaninfully slower
|
||||||
ibo = None
|
ibo = None
|
||||||
|
Reference in New Issue
Block a user