From da1c8587f7dde2f7c4b3a45a7e0acac7253e62ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 19 Feb 2014 01:07:38 +0100 Subject: [PATCH] Platform: display disabled extension status in magnum-info. Currently named as "removed" until I find a word which is *even* amount of characters shorter than "supported" ("disabled" is not and it looks ugly). Also marked extensions that can't be supported in current GL version with "n/a" instead of "---". --- src/Magnum/Platform/magnum-info.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Platform/magnum-info.cpp b/src/Magnum/Platform/magnum-info.cpp index 184fdde44..545d491b5 100644 --- a/src/Magnum/Platform/magnum-info.cpp +++ b/src/Magnum/Platform/magnum-info.cpp @@ -184,10 +184,12 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat d << " " << extensionName << std::string(60-extensionName.size(), ' '); if(c->isExtensionSupported(extension)) d << "SUPPORTED"; + else if(c->isExtensionDisabled(extension)) + d << " removed"; else if(c->isVersionSupported(extension.requiredVersion())) d << " -"; else - d << " ---"; + d << " n/a"; } Debug() << "";