Make it combilable with Qt 5.13 and older
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user