From 59af7e1920393239a1e506a8e82fdc06bb23408b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 12 Apr 2016 14:58:42 +0200 Subject: [PATCH] Fix compilation on ES. --- src/Magnum/Version.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Version.h b/src/Magnum/Version.h index 3b2271f5f..40f86ed07 100644 --- a/src/Magnum/Version.h +++ b/src/Magnum/Version.h @@ -119,7 +119,11 @@ constexpr Version version(Int major, Int minor) { @see @ref isVersionES() */ inline std::pair 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}; }