Fixing GLMeshItem memory leak in face drawing on 64-bit Linux (#1783)

This commit is contained in:
Wyatt Ubellacker 2021-05-23 18:27:49 -07:00
parent ac84f45787
commit 7e5c90a7a4

View File

@ -196,7 +196,7 @@ class GLMeshItem(GLGraphicsItem):
if faces is None:
glDrawArrays(GL_TRIANGLES, 0, np.product(verts.shape[:-1]))
else:
faces = faces.astype(np.uint).flatten()
faces = faces.astype(np.uint32).flatten()
glDrawElements(GL_TRIANGLES, faces.shape[0], GL_UNSIGNED_INT, faces)
finally:
glDisableClientState(GL_NORMAL_ARRAY)