Issue #169: Init X11 threads for threaded buffer swap

Ref: http://blog.qt.io/blog/2011/06/03/threaded-opengl-in-4-8/
This commit is contained in:
David Vierra 2015-11-09 11:43:44 -10:00
parent b5889d528c
commit 39a717b3ca

View File

@ -157,6 +157,8 @@ editorApp = None
@profiler.function("startup") @profiler.function("startup")
def startup(): def startup():
# Must call this before QApplication is created
QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_X11InitThreads, True)
global editorApp global editorApp
setup_logging() setup_logging()
sys.excepthook = excepthook sys.excepthook = excepthook