From 39a717b3cab5dd8366ed8542a070e4120386eb92 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Mon, 9 Nov 2015 11:43:44 -1000 Subject: [PATCH] Issue #169: Init X11 threads for threaded buffer swap Ref: http://blog.qt.io/blog/2011/06/03/threaded-opengl-in-4-8/ --- src/mcedit2/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mcedit2/main.py b/src/mcedit2/main.py index 62bd624..2752083 100644 --- a/src/mcedit2/main.py +++ b/src/mcedit2/main.py @@ -157,6 +157,8 @@ editorApp = None @profiler.function("startup") def startup(): + # Must call this before QApplication is created + QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_X11InitThreads, True) global editorApp setup_logging() sys.excepthook = excepthook