aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiodrag Milanović <mmicko@gmail.com>2018-12-05 19:04:36 +0100
committerGitHub <noreply@github.com>2018-12-05 19:04:36 +0100
commit6ae143685ae0977ec50ef2e433e98e086ef91c91 (patch)
treea53dd3c7586e076d6bcb47aa4c65bf54d77982b6
parent12aca1558f8827f491bb9a6370c1abb8774e5167 (diff)
parent92ddef9fc3bace1008138ec0d3b99bffd6c58416 (diff)
downloadnextpnr-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
-rw-r--r--gui/application.cc1
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);