]> git.sesse.net Git - nageru/blobdiff - nageru/main.cpp
On errors, abort() instead of exit(1); exit() in a multithreaded program just gives...
[nageru] / nageru / main.cpp
index 410a6c42d7fcaa7e78b3b31d58b98b0c935d4beb..b5463754a463bdc60f0be758a18be3add0e8ee71 100644 (file)
@@ -95,7 +95,7 @@ int main(int argc, char *argv[])
        global_share_widget = new QGLWidget();
        if (!global_share_widget->isValid()) {
                fprintf(stderr, "Failed to initialize OpenGL. Nageru needs at least OpenGL 3.1 to function properly.\n");
-               exit(1);
+               abort();
        }
 
        MainWindow mainWindow;