From f1e4d6019d71a4c42e1f10ff79c6f728e9b56f66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 2 Jul 2025 23:35:18 +0200 Subject: [PATCH] GL: properly skip CubeMapTextureArray tests if extension isn't supported. --- src/Magnum/GL/Test/CubeMapTextureArrayGLTest.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Magnum/GL/Test/CubeMapTextureArrayGLTest.cpp b/src/Magnum/GL/Test/CubeMapTextureArrayGLTest.cpp index d350fc324..c78d1ddb2 100644 --- a/src/Magnum/GL/Test/CubeMapTextureArrayGLTest.cpp +++ b/src/Magnum/GL/Test/CubeMapTextureArrayGLTest.cpp @@ -426,6 +426,14 @@ void CubeMapTextureArrayGLTest::wrap() { } void CubeMapTextureArrayGLTest::label() { + #ifndef MAGNUM_TARGET_GLES + if(!Context::current().isExtensionSupported()) + CORRADE_SKIP(Extensions::ARB::texture_cube_map_array::string() << "is not supported."); + #else + if(!Context::current().isExtensionSupported()) + CORRADE_SKIP(Extensions::EXT::texture_cube_map_array::string() << "is not supported."); + #endif + /* No-Op version is tested in AbstractObjectGLTest */ if(!Context::current().isExtensionSupported() && !Context::current().isExtensionSupported())