Browse Source

GL: skip tests for mismatched mesh attribute signedness on WebGL.

Neither FF nor Chrome allow these.
pull/240/head
Vladimír Vondruš 5 years ago
parent
commit
e3589e84b4
  1. 8
      src/Magnum/GL/Test/MeshGLTest.cpp

8
src/Magnum/GL/Test/MeshGLTest.cpp

@ -1451,6 +1451,10 @@ void MeshGLTest::addVertexBufferUnsignedIntWithShort() {
CORRADE_SKIP(Extensions::EXT::gpu_shader4::string() << "is not supported.");
#endif
#ifdef MAGNUM_TARGET_WEBGL
CORRADE_SKIP("WebGL doesn't allow supplying signed data to an unsigned attribute.");
#endif
constexpr Short data[] = { 0, 24563, 2128, 3821, 16583 };
Buffer buffer;
buffer.setData(data, BufferUsage::StaticDraw);
@ -1489,6 +1493,10 @@ void MeshGLTest::addVertexBufferIntWithUnsignedShort() {
CORRADE_SKIP(Extensions::EXT::gpu_shader4::string() << "is not supported.");
#endif
#ifdef MAGNUM_TARGET_WEBGL
CORRADE_SKIP("WebGL doesn't allow supplying unsigned data to a signed attribute.");
#endif
constexpr UnsignedShort data[] = { 0, 49563, 2128, 3821, 16583 };
Buffer buffer;
buffer.setData(data, BufferUsage::StaticDraw);

Loading…
Cancel
Save