From e09b80d5e6463b239c164d61e4094725546d0793 Mon Sep 17 00:00:00 2001 From: Alexey Presnyakov <309782758+alex-pres@users.noreply.github.com> Date: Tue, 18 Aug 2026 11:49:48 +0400 Subject: [PATCH] qt5_graphics bg fix #4379 invalid vertex shaped used for background drawing --- src/emc/usr_intf/gremlin/qt5_graphics.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/emc/usr_intf/gremlin/qt5_graphics.py b/src/emc/usr_intf/gremlin/qt5_graphics.py index b7a245b7c61..fa07710bd27 100644 --- a/src/emc/usr_intf/gremlin/qt5_graphics.py +++ b/src/emc/usr_intf/gremlin/qt5_graphics.py @@ -18,7 +18,6 @@ LIB_GOOD = True try: from OpenGL import GL - from OpenGL.GL import glColor4f from OpenGL import GLU except ImportError: LOG.error('Qtvcp Error with graphics - is python3-openGL installed?') @@ -934,7 +933,7 @@ def _draw_gradient_background(self): c2 = self.gradient_color2 def v(x, y, c): - return (x, y, 0.0, c[0], c[1], c[2], 1.0, 0.0, 0.0) + return (x, y, 0.0, c[0], c[1], c[2], 1.0, 0.0) verts = np.array([v(-1, -1, c1), v(1, -1, c1), v(1, 1, c2), v(-1, -1, c1), v(1, 1, c2), v(-1, 1, c2)], dtype=np.float32)