From 92ddef9fc3bace1008138ec0d3b99bffd6c58416 Mon Sep 17 00:00:00 2001 From: Adrian Jeakins Date: Tue, 4 Dec 2018 23:05:06 +0000 Subject: Fix crash starting the GUI on macOS where we must request a core profile. See http://doc.qt.io/qt-5/qabstractopenglfunctions.html --- gui/application.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/application.cc b/gui/application.cc index aece5d2a..7751e6f1 100644 --- a/gui/application.cc +++ b/gui/application.cc @@ -41,6 +41,7 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv) { QSurfaceFormat fmt; fmt.setSamples(10); + fmt.setProfile(QSurfaceFormat::CoreProfile); QSurfaceFormat::setDefaultFormat(fmt); #ifdef _WIN32 SetConsoleCtrlHandler((PHANDLER_ROUTINE)WinHandler, TRUE); -- cgit v1.2.3