From 2e700ee3841e8e631acfdbde19a7e1df916fb10e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 14 Mar 2014 12:27:46 +0100 Subject: [PATCH] Platform: create context later so its output is at better place. --- src/Magnum/Platform/magnum-info.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Magnum/Platform/magnum-info.cpp b/src/Magnum/Platform/magnum-info.cpp index f381da939..faaee7d3b 100644 --- a/src/Magnum/Platform/magnum-info.cpp +++ b/src/Magnum/Platform/magnum-info.cpp @@ -73,11 +73,6 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat args.parse(arguments.argc, arguments.argv); #endif - /* Create context after parsing arguments, so the help can be displayed - without creating context */ - createContext(); - Context* c = Context::current(); - /* Pass debug output as messages to JavaScript */ #ifdef CORRADE_TARGET_NACL Utility::NaClMessageStreamBuffer buffer(this); @@ -138,6 +133,10 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat #endif Debug() << ""; + /* Create context here, so the context creation info is displayed at proper + place */ + createContext(); + Context* c = Context::current(); Debug() << "Vendor:" << c->vendorString(); Debug() << "Renderer:" << c->rendererString(); Debug() << "OpenGL version:" << c->version() << '(' + c->versionString() + ')';