Browse Source

GL: properly skip CubeMapTextureArray tests if extension isn't supported.

pull/680/head
Vladimír Vondruš 10 months ago
parent
commit
f1e4d6019d
  1. 8
      src/Magnum/GL/Test/CubeMapTextureArrayGLTest.cpp

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

@ -426,6 +426,14 @@ void CubeMapTextureArrayGLTest::wrap() {
} }
void CubeMapTextureArrayGLTest::label() { void CubeMapTextureArrayGLTest::label() {
#ifndef MAGNUM_TARGET_GLES
if(!Context::current().isExtensionSupported<Extensions::ARB::texture_cube_map_array>())
CORRADE_SKIP(Extensions::ARB::texture_cube_map_array::string() << "is not supported.");
#else
if(!Context::current().isExtensionSupported<Extensions::EXT::texture_cube_map_array>())
CORRADE_SKIP(Extensions::EXT::texture_cube_map_array::string() << "is not supported.");
#endif
/* No-Op version is tested in AbstractObjectGLTest */ /* No-Op version is tested in AbstractObjectGLTest */
if(!Context::current().isExtensionSupported<Extensions::KHR::debug>() && if(!Context::current().isExtensionSupported<Extensions::KHR::debug>() &&
!Context::current().isExtensionSupported<Extensions::EXT::debug_label>()) !Context::current().isExtensionSupported<Extensions::EXT::debug_label>())

Loading…
Cancel
Save