mirror of
https://github.com/3b1b/manim.git
synced 2025-08-21 05:44:04 +00:00
Fix index buffer bug
This commit is contained in:
parent
da15eb4ad2
commit
77a3984683
1 changed files with 1 additions and 1 deletions
|
@ -415,7 +415,7 @@ class Camera(object):
|
||||||
if indices is None:
|
if indices is None:
|
||||||
ibo = None
|
ibo = None
|
||||||
elif single_use:
|
elif single_use:
|
||||||
ibo = self.ctx.buffer(indices)
|
ibo = self.ctx.buffer(indices.astype(np.uint32))
|
||||||
else:
|
else:
|
||||||
# The vao.render call is strangely longer
|
# The vao.render call is strangely longer
|
||||||
# when an index buffer is used, so if the
|
# when an index buffer is used, so if the
|
||||||
|
|
Loading…
Add table
Reference in a new issue