diff --git a/doc/snippets/MagnumGL.cpp b/doc/snippets/MagnumGL.cpp index 305d0dc45..a640ceca1 100644 --- a/doc/snippets/MagnumGL.cpp +++ b/doc/snippets/MagnumGL.cpp @@ -1112,6 +1112,7 @@ mesh.setIndexBuffer(indices, 0, type); /* [Mesh-indices-tool] */ } +#if !(defined(MAGNUM_TARGET_WEBGL) && defined(MAGNUM_TARGET_GLES2)) /* The damn thing doesn't understand unnamed bitfields in local structs */ #ifndef CORRADE_MSVC2015_COMPATIBILITY { @@ -1149,6 +1150,7 @@ mesh.addVertexBuffer(vertices, offsetof(Packed, normal), sizeof(Packed), /* [Mesh-formats-vertexformat] */ } #endif +#endif { GL::Mesh mesh;