Browse Source

Platform: create context later so its output is at better place.

pull/51/head
Vladimír Vondruš 12 years ago
parent
commit
2e700ee384
  1. 9
      src/Magnum/Platform/magnum-info.cpp

9
src/Magnum/Platform/magnum-info.cpp

@ -73,11 +73,6 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat
args.parse(arguments.argc, arguments.argv); args.parse(arguments.argc, arguments.argv);
#endif #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 */ /* Pass debug output as messages to JavaScript */
#ifdef CORRADE_TARGET_NACL #ifdef CORRADE_TARGET_NACL
Utility::NaClMessageStreamBuffer buffer(this); Utility::NaClMessageStreamBuffer buffer(this);
@ -138,6 +133,10 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat
#endif #endif
Debug() << ""; Debug() << "";
/* Create context here, so the context creation info is displayed at proper
place */
createContext();
Context* c = Context::current();
Debug() << "Vendor:" << c->vendorString(); Debug() << "Vendor:" << c->vendorString();
Debug() << "Renderer:" << c->rendererString(); Debug() << "Renderer:" << c->rendererString();
Debug() << "OpenGL version:" << c->version() << '(' + c->versionString() + ')'; Debug() << "OpenGL version:" << c->version() << '(' + c->versionString() + ')';

Loading…
Cancel
Save