Browse Source

Half float attributes are available on WebGL 2.

pull/205/head
Vladimír Vondruš 8 years ago
parent
commit
a929c4f8bf
  1. 1
      doc/changelog.dox
  2. 2
      src/Magnum/Attribute.h

1
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

2
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}

Loading…
Cancel
Save