Make it combilable with Qt 5.13 and older

This commit is contained in:
2022-10-23 09:54:23 +02:00
parent 4fe546f0e5
commit 455c3b2d64
4 changed files with 30 additions and 2 deletions
+2
View File
@@ -15,7 +15,9 @@ int main(int argc, char *argv[])
format.setMinorVersion(3);
format.setOption(QSurfaceFormat::DebugContext);
format.setProfile(QSurfaceFormat::OpenGLContextProfile::CoreProfile);
#ifdef COLOR_MANAGMENT
format.setColorSpace(QSurfaceFormat::sRGBColorSpace);
#endif
QSurfaceFormat::setDefaultFormat(format);
QApplication a(argc, argv);