Skip to content

Commit 7ca36cf

Browse files
committed
Forgot to add XCB file
1 parent 37eb101 commit 7ca36cf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pyinstaller/pyi_rth_qt_xcb.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import os
2+
import sys
3+
4+
# Prevent Qt's XCB plugin from initializing GLX before OCCT does.
5+
# When Qt's bundled libqxcb.so fails to find a matching GLX FBConfig,
6+
# it can leave the display connection in a state that breaks OCCT's own
7+
# GLX initialization. OCCT creates its own GL context via Xw_Window
8+
# directly, so Qt does not need GLX integration.
9+
if sys.platform.startswith("linux"):
10+
os.environ["QT_XCB_GL_INTEGRATION"] = "none"

0 commit comments

Comments
 (0)