From 7e5c90a7a49ad433fdf6d36ecd0d8c7d98bffc93 Mon Sep 17 00:00:00 2001 From: Wyatt Ubellacker Date: Sun, 23 May 2021 18:27:49 -0700 Subject: [PATCH] Fixing GLMeshItem memory leak in face drawing on 64-bit Linux (#1783) --- pyqtgraph/opengl/items/GLMeshItem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyqtgraph/opengl/items/GLMeshItem.py b/pyqtgraph/opengl/items/GLMeshItem.py index 55e75942..e5379ae2 100644 --- a/pyqtgraph/opengl/items/GLMeshItem.py +++ b/pyqtgraph/opengl/items/GLMeshItem.py @@ -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)