Use OpenGL 3.2 Core

This commit is contained in:
2022-04-07 09:58:52 +02:00
parent b67c2d520e
commit 888e3d86a9
3 changed files with 7 additions and 5 deletions
+2 -1
View File
@@ -6,8 +6,9 @@ int main(int argc, char *argv[])
{
QSurfaceFormat format;
format.setMajorVersion(3);
format.setMinorVersion(0);
format.setMinorVersion(2);
format.setOption(QSurfaceFormat::DebugContext);
format.setProfile(QSurfaceFormat::OpenGLContextProfile::CoreProfile);
QSurfaceFormat::setDefaultFormat(format);
QApplication a(argc, argv);