mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Add calls to XInitThreads() to allow driver multithreading optimisations
This commit is contained in:
@@ -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.";
|
||||
|
||||
Reference in New Issue
Block a user