Browse Source

GL: trim vendor string in the engine startup log.

Mesa has a space at the end and my OCD goes crazy about that.
pull/362/head
Vladimír Vondruš 7 years ago
parent
commit
1c8cbaa68a
  1. 4
      src/Magnum/GL/Context.cpp

4
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 */

Loading…
Cancel
Save