From e3589e84b449c3459e692d9047cedc0123f321c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 17 Oct 2021 14:21:27 +0200 Subject: [PATCH] GL: skip tests for mismatched mesh attribute signedness on WebGL. Neither FF nor Chrome allow these. --- src/Magnum/GL/Test/MeshGLTest.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Magnum/GL/Test/MeshGLTest.cpp b/src/Magnum/GL/Test/MeshGLTest.cpp index c882b38c1..b58582c00 100644 --- a/src/Magnum/GL/Test/MeshGLTest.cpp +++ b/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);