diff options
author | Adrian Jeakins <jeakinsadrian@gmail.com> | 2018-12-04 23:05:06 +0000 |
---|---|---|
committer | Adrian Jeakins <jeakinsadrian@gmail.com> | 2018-12-04 23:05:06 +0000 |
commit | 92ddef9fc3bace1008138ec0d3b99bffd6c58416 (patch) | |
tree | a53dd3c7586e076d6bcb47aa4c65bf54d77982b6 /gui/application.cc | |
parent | 12aca1558f8827f491bb9a6370c1abb8774e5167 (diff) | |
download | nextpnr-92ddef9fc3bace1008138ec0d3b99bffd6c58416.tar.gz nextpnr-92ddef9fc3bace1008138ec0d3b99bffd6c58416.tar.bz2 nextpnr-92ddef9fc3bace1008138ec0d3b99bffd6c58416.zip |
Fix crash starting the GUI on macOS where we must request a core profile.
See http://doc.qt.io/qt-5/qabstractopenglfunctions.html
Diffstat (limited to 'gui/application.cc')
-rw-r--r-- | gui/application.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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); |