diff --git a/src/Magnum/Test/TextureGLTest.cpp b/src/Magnum/Test/TextureGLTest.cpp index 0161ff516..ad91b8d2e 100644 --- a/src/Magnum/Test/TextureGLTest.cpp +++ b/src/Magnum/Test/TextureGLTest.cpp @@ -88,6 +88,7 @@ struct TextureGLTest: AbstractOpenGLTester { #endif #ifndef MAGNUM_TARGET_GLES + void samplingBorderInteger1D(); void samplingBorderInteger2D(); void samplingBorderInteger3D(); void samplingDepthStencilMode1D(); @@ -212,6 +213,7 @@ TextureGLTest::TextureGLTest() { #endif #ifndef MAGNUM_TARGET_GLES + &TextureGLTest::samplingBorderInteger1D, &TextureGLTest::samplingBorderInteger2D, &TextureGLTest::samplingBorderInteger3D, &TextureGLTest::samplingDepthStencilMode1D, @@ -515,6 +517,20 @@ void TextureGLTest::samplingSwizzle1D() { MAGNUM_VERIFY_NO_ERROR(); } +void TextureGLTest::samplingBorderInteger1D() { + if(!Context::current()->isExtensionSupported()) + CORRADE_SKIP(Extensions::GL::EXT::texture_integer::string() + std::string(" is not supported.")); + + Texture1D a; + a.setWrapping(Sampler::Wrapping::ClampToBorder) + .setBorderColor(Vector4i(1, 56, 78, -2)); + Texture1D b; + b.setWrapping(Sampler::Wrapping::ClampToBorder) + .setBorderColor(Vector4ui(35, 56, 78, 15)); + + MAGNUM_VERIFY_NO_ERROR(); +} + void TextureGLTest::samplingDepthStencilMode1D() { if(!Context::current()->isExtensionSupported()) CORRADE_SKIP(Extensions::GL::ARB::stencil_texturing::string() + std::string(" is not supported."));