mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-18 17:59:51 -06:00
Cleanup code with designated initializer lists
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user