Browse Source

Print separate major/minor integers for unsupported version.

This message:

    Context: unsupported OpenGL version (1, 3).

Is better than this:

    Context: unuspported OpenGL version 130.
pull/51/head
Vladimír Vondruš 12 years ago
parent
commit
c7607af0ad
  1. 4
      src/Magnum/Context.cpp

4
src/Magnum/Context.cpp

@ -352,9 +352,9 @@ Context::Context() {
#endif #endif
{ {
#ifndef MAGNUM_TARGET_GLES #ifndef MAGNUM_TARGET_GLES
Error() << "Context: unsupported OpenGL version" << Int(_version); Error() << "Context: unsupported OpenGL version" << Magnum::version(_version);
#else #else
Error() << "Context: unsupported OpenGL ES version" << Int(_version); Error() << "Context: unsupported OpenGL ES version" << Magnum::version(_version);
#endif #endif
std::exit(1); std::exit(1);
} }

Loading…
Cancel
Save