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:
commit
6ae143685a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user