Browse Source

Context: use fully qualified name in macro.

So the macros are usable also when there is no `using namespace Magnum`.
pull/278/head
Vladimír Vondruš 13 years ago
parent
commit
5b2484cc2c
  1. 4
      src/Context.h

4
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<extension>()) { \
if(!Magnum::Context::current()->isExtensionSupported<extension>()) { \
Corrade::Utility::Error() << "Magnum: required extension" << extension::string() << "is not supported"; \
std::exit(-3); \
} \

Loading…
Cancel
Save