Always call XInitThreads.

Any Qt application that embeds a QSGView needs to call this
because of the threaded renderer. Today applications that
use threaded GL silently fail. In a few weeks time, the
refactor branch will be merged, which will obsolete this
change, so it is a temporary measure to get tests and
examples running.
bb10
Gunnar Sletta 2011-05-19 08:34:52 +02:00
parent c5303517c3
commit 105513a888
1 changed files with 2 additions and 2 deletions

View File

@ -1740,8 +1740,8 @@ void qt_init(QApplicationPrivate *priv, int,
} else {
// Qt controls everything (default)
if (QApplication::testAttribute(Qt::AA_X11InitThreads))
XInitThreads();
// With the threaded QML renderer, we always need this.
XInitThreads();
// Set application name and class
char *app_class = 0;