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
+3
View File
@@ -210,6 +210,9 @@ void DisplayRendererPreview(IReplayController *renderer, TextureDisplay &display
// need to create a hybrid setup xlib and xcb in case only one or the other is supported.
// We'll prefer xcb
// call XInitThreads - although we don't use xlib concurrently the driver might need to.
XInitThreads();
Display *display = XOpenDisplay(NULL);
if(display == NULL)