diff --git a/src/Context.cpp b/src/Context.cpp index 7c7d31929..33d8c87b1 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -295,6 +295,9 @@ Context::Context() { #endif _version = static_cast(_majorVersion*100+_minorVersion*10); + CORRADE_ASSERT(Renderer::error() == Renderer::Error::NoError, + "Context: cannot retrieve OpenGL version", ); + #ifndef MAGNUM_TARGET_GLES CORRADE_ASSERT(isVersionSupported(Version::GL210), "Context: unsupported OpenGL version" << Int(_version), ); #elif defined(MAGNUM_TARGET_GLES2)