Skip to content

Commit d7219ff

Browse files
committed
Use OpenGL core profile on macOS
1 parent 58a0f22 commit d7219ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/global_functions.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ void scratchcpprender::init()
1010

1111
QSurfaceFormat format = QSurfaceFormat::defaultFormat();
1212
format.setSwapInterval(0);
13+
#ifdef Q_OS_MACOS
14+
format.setProfile(QSurfaceFormat::CoreProfile);
15+
format.setVersion(3, 2);
16+
#endif
1317
QSurfaceFormat::setDefaultFormat(format);
1418
}
1519

0 commit comments

Comments
 (0)