From c7607af0adfc6a34f2800ef1fae1bb3f6c2bac5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 21 Feb 2014 01:42:02 +0100 Subject: [PATCH] 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. --- src/Magnum/Context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Context.cpp b/src/Magnum/Context.cpp index d3aa25122..ba41a0946 100644 --- a/src/Magnum/Context.cpp +++ b/src/Magnum/Context.cpp @@ -352,9 +352,9 @@ Context::Context() { #endif { #ifndef MAGNUM_TARGET_GLES - Error() << "Context: unsupported OpenGL version" << Int(_version); + Error() << "Context: unsupported OpenGL version" << Magnum::version(_version); #else - Error() << "Context: unsupported OpenGL ES version" << Int(_version); + Error() << "Context: unsupported OpenGL ES version" << Magnum::version(_version); #endif std::exit(1); }