diff --git a/doc/changelog.dox b/doc/changelog.dox index 30c37c3c7..2439d8979 100644 --- a/doc/changelog.dox +++ b/doc/changelog.dox @@ -81,6 +81,7 @@ See also: shader sources containing Unicode characters to be truncated to empty strings. See the @cpp "emscripten-pthreads-broken-unicode-shader-sources" @ce workaround description for details. +- @ref Attribute::DataType::HalfFloat was not available on WebGL 2 by mistake @subsection changelog-latest-deprecated Deprecated APIs diff --git a/src/Magnum/Attribute.h b/src/Magnum/Attribute.h index 407f7d332..7a3a47baa 100644 --- a/src/Magnum/Attribute.h +++ b/src/Magnum/Attribute.h @@ -416,7 +416,7 @@ class DynamicAttribute { UnsignedInt = GL_UNSIGNED_INT, /**< Unsigned int */ Int = GL_INT, /**< Int */ - #ifndef MAGNUM_TARGET_WEBGL + #if !(defined(MAGNUM_TARGET_WEBGL) && defined(MAGNUM_TARGET_GLES2)) /** * Half float. Only for float attribute types. * @requires_gl30 Extension @extension{ARB,half_float_vertex}