diff --git a/src/Magnum/Platform/gl-info.cpp b/src/Magnum/Platform/gl-info.cpp index 3c9b5ee5a..4221cd777 100644 --- a/src/Magnum/Platform/gl-info.cpp +++ b/src/Magnum/Platform/gl-info.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include "Magnum/GL/AbstractShaderProgram.h" #include "Magnum/GL/Buffer.h" @@ -334,9 +335,7 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat Debug() << "Detected driver:" << c.detectedDriver(); Debug() << "Supported GLSL versions:"; - const std::vector shadingLanguageVersions = c.shadingLanguageVersionStrings(); - for(const auto& version: shadingLanguageVersions) - Debug() << " " << version; + Debug() << " " << Utility::String::joinWithoutEmptyParts(c.shadingLanguageVersionStrings(), ", "); if(args.isSet("extension-strings")) { Debug() << "Extension strings:" << Debug::newline