Cleanup code with designated initializer lists

This commit is contained in:
Alexander Bock
2023-01-22 23:01:32 +01:00
parent 3c6fc51ac2
commit d52c5dd0d9
69 changed files with 532 additions and 411 deletions

View File

@@ -486,7 +486,11 @@ void OpenSpaceEngine::initializeGL() {
bool debugActive = global::configuration->openGLDebugContext.isActive;
// Debug output is not available before 4.3
const ghoul::systemcapabilities::Version minVersion = { 4, 3, 0 };
const ghoul::systemcapabilities::Version minVersion = {
.major = 4,
.minor = 3,
.release = 0
};
if (debugActive && OpenGLCap.openGLVersion() < minVersion) {
LINFO("OpenGL Debug context requested, but insufficient version available");
debugActive = false;