Add calls to XInitThreads() to allow driver multithreading optimisations

This commit is contained in:
baldurk
2017-05-05 16:45:29 +01:00
parent 023cb57c66
commit c854294dc8
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -52,6 +52,10 @@ void sharedLogOutput(QtMsgType type, const QMessageLogContext &context, const QS
int main(int argc, char *argv[])
{
// call this as the very first thing - no-op on other platforms, but on linux it means
// XInitThreads will be called allowing driver access to xlib on multiple threads.
QCoreApplication::setAttribute(Qt::AA_X11InitThreads);
qInstallMessageHandler(sharedLogOutput);
qInfo() << "QRenderDoc initialising.";