diff options
Diffstat (limited to 'facetracknoir')
-rw-r--r-- | facetracknoir/main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/facetracknoir/main.cpp b/facetracknoir/main.cpp index 7462f8c2..694715d1 100644 --- a/facetracknoir/main.cpp +++ b/facetracknoir/main.cpp @@ -2,8 +2,16 @@ #include <QApplication> #include <memory> +#ifdef _WIN32 +# include <objbase.h> +#endif + int main(int argc, char** argv) { +#ifdef _WIN32 + CoInitializeEx(NULL, COINIT_MULTITHREADED); +#endif + QApplication::setAttribute(Qt::AA_X11InitThreads, true); QApplication app(argc, argv); auto w = std::make_shared<FaceTrackNoIR>(); |