Fix index buffer bug

This commit is contained in:
Grant Sanderson
2023-01-15 21:06:55 -08:00
parent da15eb4ad2
commit 77a3984683

View File

@ -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