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