Browse Source

Fix annoying unused variable warning on ES.

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

8
src/Magnum/Version.h

@ -132,13 +132,13 @@ inline std::pair<Int, Int> version(Version version) {
Always `true` on @ref MAGNUM_TARGET_GLES "OpenGL ES" and WebGL build.
*/
#ifndef MAGNUM_TARGET_GLES
constexpr bool isVersionES(Version version) {
#ifndef MAGNUM_TARGET_GLES
return Int(version) & Implementation::VersionESMask;
#else
return true;
#endif
}
#else
constexpr bool isVersionES(Version) { return true; }
#endif
/** @debugoperatorenum{Magnum::Version} */
MAGNUM_EXPORT Debug& operator<<(Debug& debug, Version value);

Loading…
Cancel
Save