Browse Source

GCC 4.4 compatibility: no comparison of strongly typed enums.

Vladimír Vondruš 14 years ago
parent
commit
5ec4dff605
  1. 4
      src/Context.h

4
src/Context.h

@ -200,7 +200,11 @@ class MAGNUM_EXPORT Context {
* @see supportedVersion()
*/
inline bool isVersionSupported(Version version) const {
#ifndef CORRADE_GCC44_COMPATIBILITY
return _version >= version;
#else
return static_cast<GLint>(_version) >= static_cast<GLint>(version);
#endif
}
/**

Loading…
Cancel
Save