From fd3ff488d72ca98f44ae5fb9d075f4ce4f96637d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 4 Dec 2021 17:30:57 +0100 Subject: [PATCH] doc: fix doc snippet compilation on WebGL 1. Issue originated in 491b724a8615f693f8c3c33650176e606492ed11. Sigh, flaky CI made me think this was just a temporary hiccup :/ --- doc/snippets/MagnumGL.cpp | 2 ++ 1 file changed, 2 insertions(+) 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;