Browse Source

doc: fix doc snippet compilation on WebGL 1.

Issue originated in 491b724a86. Sigh,
flaky CI made me think this was just a temporary hiccup :/
pull/525/head
Vladimír Vondruš 4 years ago
parent
commit
fd3ff488d7
  1. 2
      doc/snippets/MagnumGL.cpp

2
doc/snippets/MagnumGL.cpp

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

Loading…
Cancel
Save