Browse Source

Fix compilation on ES.

pull/141/head
Vladimír Vondruš 10 years ago
parent
commit
59af7e1920
  1. 6
      src/Magnum/Version.h

6
src/Magnum/Version.h

@ -119,7 +119,11 @@ constexpr Version version(Int major, Int minor) {
@see @ref isVersionES()
*/
inline std::pair<Int, Int> version(Version version) {
const Int v = Int(version) & ~Implementation::VersionESMask;
const Int v = Int(version)
#ifndef MAGNUM_TARGET_GLES
& ~Implementation::VersionESMask
#endif
;
return {v/100, (v%100)/10};
}

Loading…
Cancel
Save