From a929c4f8bf345cb1de57051cc0d15607fa796319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 26 Mar 2018 08:32:55 +0200 Subject: [PATCH] Half float attributes are available on WebGL 2. --- doc/changelog.dox | 1 + src/Magnum/Attribute.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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}