diff options
author | Miodrag Milanović <mmicko@gmail.com> | 2018-12-05 19:04:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-05 19:04:36 +0100 |
commit | 6ae143685ae0977ec50ef2e433e98e086ef91c91 (patch) | |
tree | a53dd3c7586e076d6bcb47aa4c65bf54d77982b6 /gui | |
parent | 12aca1558f8827f491bb9a6370c1abb8774e5167 (diff) | |
parent | 92ddef9fc3bace1008138ec0d3b99bffd6c58416 (diff) | |
download | nextpnr-6ae143685ae0977ec50ef2e433e98e086ef91c91.tar.gz nextpnr-6ae143685ae0977ec50ef2e433e98e086ef91c91.tar.bz2 nextpnr-6ae143685ae0977ec50ef2e433e98e086ef91c91.zip |
Merge pull request #166 from ajeakins/master
Fix crash starting the GUI on macOS where we must request a core profile
Diffstat (limited to 'gui')
-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); |