diff --git a/src/Magnum/Attribute.h b/src/Magnum/Attribute.h index 3645826e8..439e81383 100644 --- a/src/Magnum/Attribute.h +++ b/src/Magnum/Attribute.h @@ -171,7 +171,11 @@ template class Attribute { * @requires_webgl20 Half float vertex attributes are not available * in WebGL 1.0. */ + #ifndef MAGNUM_TARGET_GLES2 HalfFloat = GL_HALF_FLOAT, + #else + HalfFloat = GL_HALF_FLOAT_OES, + #endif #endif /** Float. Only for float attribute types. */