From 470020a35e92d22239bdfaebb95b1a5f1c653d3f Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Sat, 23 Nov 2024 14:45:33 +0300 Subject: [PATCH] pyglet: disable shadow_window It looks like on linux/X11 pyglet's shadow_window conflicts with wxWidget's GLContext. Since pronterface can't make use of it anway, it makes sense to just disable it. Bug: https://github.com/kliment/Printrun/issues/1390 --- printrun/gl/panel.py | 1 + 1 file changed, 1 insertion(+) diff --git a/printrun/gl/panel.py b/printrun/gl/panel.py index 02535998c..3497fdc05 100644 --- a/printrun/gl/panel.py +++ b/printrun/gl/panel.py @@ -24,6 +24,7 @@ import pyglet pyglet.options['debug_gl'] = True +pyglet.options['shadow_window'] = False from pyglet.gl import glEnable, glDisable, GL_LIGHTING, glLightfv, \ GL_LIGHT0, GL_LIGHT1, GL_LIGHT2, GL_POSITION, GL_DIFFUSE, \