No need to call tobytes

This commit is contained in:
Grant Sanderson
2023-01-14 08:31:53 -08:00
parent 19a7721661
commit c9ba32b568

View File

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