Browse Source

Unique exit code for each failure in Context::Context().

Make it less annoying to debug things on platforms which send all
standard output to /dev/hell without any easy way to override that. Yes,
I'm looking at you, Android.
pull/51/head
Vladimír Vondruš 12 years ago
parent
commit
6f5d556c02
  1. 6
      src/Magnum/Context.cpp

6
src/Magnum/Context.cpp

@ -283,7 +283,7 @@ Context::Context() {
everything possible. */
if(ogl_LoadFunctions() == ogl_LOAD_FAILED) {
Error() << "ExtensionWrangler: cannot initialize glLoadGen";
std::exit(1);
std::exit(64);
}
#endif
@ -327,7 +327,7 @@ Context::Context() {
#endif
} else {
Error() << "Context: unsupported version string:" << version;
std::exit(1);
std::exit(65);
}
}
#endif
@ -356,7 +356,7 @@ Context::Context() {
#else
Error() << "Context: unsupported OpenGL ES version" << Magnum::version(_version);
#endif
std::exit(1);
std::exit(66);
}
/* Context flags are supported since GL 3.0 */

Loading…
Cancel
Save