1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-01-30 05:34:18 +00:00

Merge pull request #166 from ajeakins/master

Fix crash starting the GUI on macOS where we must request a core profile
This commit is contained in:
Miodrag Milanović
2018-12-05 19:04:36 +01:00
committed by GitHub

View File

@@ -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);