From 77a398468386d40a3ab2f3cb35b32535af9d966d Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Sun, 15 Jan 2023 21:06:55 -0800 Subject: [PATCH] Fix index buffer bug --- manimlib/camera/camera.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manimlib/camera/camera.py b/manimlib/camera/camera.py index 4dfc994c..3dbab48d 100644 --- a/manimlib/camera/camera.py +++ b/manimlib/camera/camera.py @@ -415,7 +415,7 @@ class Camera(object): if indices is None: ibo = None elif single_use: - ibo = self.ctx.buffer(indices) + ibo = self.ctx.buffer(indices.astype(np.uint32)) else: # The vao.render call is strangely longer # when an index buffer is used, so if the