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
commit 6ae143685a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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