Fixing GLMeshItem memory leak in face drawing on 64-bit Linux (#1783)
This commit is contained in:
parent
ac84f45787
commit
7e5c90a7a4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user