From 1659f68d5977fcbd941a1acac8bc9acbd3563df7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 27 Sep 2014 22:31:29 +0200 Subject: [PATCH] Print some more info when initializing Context. Then also don't display this information duplicated in magnum-info. --- src/Magnum/Context.cpp | 5 ++++- src/Magnum/Platform/magnum-info.cpp | 3 --- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Magnum/Context.cpp b/src/Magnum/Context.cpp index ddaaf3c1a..cfdee5f81 100644 --- a/src/Magnum/Context.cpp +++ b/src/Magnum/Context.cpp @@ -479,7 +479,10 @@ Context::Context(void functionLoader()) { CORRADE_ASSERT(!_current, "Context: Another context currently active", ); _current = this; - /* Initialize state tracker */ + /* Print some info and initialize state tracker (which also prints some + more info) */ + Debug() << "Renderer:" << rendererString() << "by" << vendorString(); + Debug() << "OpenGL version:" << versionString(); _state = new Implementation::State(*this); /* Initialize functionality based on current OpenGL version and extensions */ diff --git a/src/Magnum/Platform/magnum-info.cpp b/src/Magnum/Platform/magnum-info.cpp index 126a17c4d..9dd6d4793 100644 --- a/src/Magnum/Platform/magnum-info.cpp +++ b/src/Magnum/Platform/magnum-info.cpp @@ -214,9 +214,6 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat place */ createContext(); Context* c = Context::current(); - Debug() << "Vendor:" << c->vendorString(); - Debug() << "Renderer:" << c->rendererString(); - Debug() << "OpenGL version:" << c->version() << '(' + c->versionString() + ')'; Debug() << "Context flags:"; #ifndef MAGNUM_TARGET_GLES