From 1c8cbaa68a117a3680c421a5da77df06e3be329b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 11 Jul 2019 19:40:39 +0200 Subject: [PATCH] GL: trim vendor string in the engine startup log. Mesa has a space at the end and my OCD goes crazy about that. --- src/Magnum/GL/Context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/GL/Context.cpp b/src/Magnum/GL/Context.cpp index 58432c1f5..7873654a3 100644 --- a/src/Magnum/GL/Context.cpp +++ b/src/Magnum/GL/Context.cpp @@ -707,8 +707,8 @@ bool Context::tryCreate() { std::ostream* output = _internalFlags & InternalFlag::DisplayInitializationLog ? Debug::output() : nullptr; /* Print some info and initialize state tracker (which also prints some - more info) */ - Debug{output} << "Renderer:" << rendererString() << "by" << vendorString(); + more info). Mesa's renderer string has a space at the end, trim that. */ + Debug{output} << "Renderer:" << Utility::String::trim(rendererString()) << "by" << vendorString(); Debug{output} << "OpenGL version:" << versionString(); /* Disable extensions as requested by the user */