To prevent that weird crash, you need to initialize SDL before Qt sdl2transition
authorunc0rr
Sat, 14 Dec 2013 21:16:20 +0400
branchsdl2transition
changeset 9711 7d0329f37181
parent 9709 9315727c0f1d
child 9798 f2b18754742f
To prevent that weird crash, you need to initialize SDL before Qt
QTfrontend/main.cpp
--- a/QTfrontend/main.cpp	Fri Dec 06 00:56:56 2013 +0100
+++ b/QTfrontend/main.cpp	Sat Dec 14 21:16:20 2013 +0400
@@ -37,6 +37,8 @@
 #include "FileEngine.h"
 #include "MessageDialog.h"
 
+#include "SDLInteraction.h"
+
 #ifdef _WIN32
 #include <Shlobj.h>
 #elif defined __APPLE__
@@ -132,6 +134,8 @@
     cocoaInit = new CocoaInitializer(); // Creates the autoreleasepool preventing cocoa object leaks on OS X.
 #endif
 
+    SDLInteraction::instance();
+
     HWApplication app(argc, argv);
 
     QLabel *splash = NULL;