From 5b2484cc2c5de489a215316bd936975f2f58f557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 24 May 2013 21:59:30 +0200 Subject: [PATCH] Context: use fully qualified name in macro. So the macros are usable also when there is no `using namespace Magnum`. --- src/Context.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Context.h b/src/Context.h index 077ba3dc9..d48dab731 100644 --- a/src/Context.h +++ b/src/Context.h @@ -393,7 +393,7 @@ MAGNUM_ASSERT_VERSION_SUPPORTED(Version::GL330); #else #define MAGNUM_ASSERT_VERSION_SUPPORTED(version) \ do { \ - if(!Context::current()->isVersionSupported(version)) { \ + if(!Magnum::Context::current()->isVersionSupported(version)) { \ Corrade::Utility::Error() << "Magnum: required version" << version << "is not supported"; \ std::exit(-3); \ } \ @@ -423,7 +423,7 @@ MAGNUM_ASSERT_EXTENSION_SUPPORTED(Extensions::GL::ARB::geometry_shader4); #else #define MAGNUM_ASSERT_EXTENSION_SUPPORTED(extension) \ do { \ - if(!Context::current()->isExtensionSupported()) { \ + if(!Magnum::Context::current()->isExtensionSupported()) { \ Corrade::Utility::Error() << "Magnum: required extension" << extension::string() << "is not supported"; \ std::exit(-3); \ } \