@ -254,6 +254,13 @@ void TextureGLTest::construct3D() {
# ifndef MAGNUM_TARGET_GLES
void TextureGLTest : : bind1D ( ) {
Texture1D texture ;
if ( Context : : current ( ) - > isExtensionSupported < Extensions : : GL : : ARB : : multi_bind > ( ) ) {
CORRADE_EXPECT_FAIL ( " With ARB_multi_bind the texture must be associated with given target at least once before binding it. " ) ;
texture . setBaseLevel ( 0 ) ;
CORRADE_VERIFY ( false ) ;
}
texture . bind ( 15 ) ;
MAGNUM_VERIFY_NO_ERROR ( ) ;
@ -270,6 +277,15 @@ void TextureGLTest::bind1D() {
void TextureGLTest : : bind2D ( ) {
Texture2D texture ;
# ifndef MAGNUM_TARGET_GLES
if ( Context : : current ( ) - > isExtensionSupported < Extensions : : GL : : ARB : : multi_bind > ( ) ) {
CORRADE_EXPECT_FAIL ( " With ARB_multi_bind the texture must be associated with given target at least once before binding it. " ) ;
texture . setBaseLevel ( 0 ) ;
CORRADE_VERIFY ( false ) ;
}
# endif
texture . bind ( 15 ) ;
MAGNUM_VERIFY_NO_ERROR ( ) ;
@ -290,6 +306,15 @@ void TextureGLTest::bind3D() {
# endif
Texture3D texture ;
# ifndef MAGNUM_TARGET_GLES
if ( Context : : current ( ) - > isExtensionSupported < Extensions : : GL : : ARB : : multi_bind > ( ) ) {
CORRADE_EXPECT_FAIL ( " With ARB_multi_bind the texture must be associated with given target at least once before binding it. " ) ;
texture . setBaseLevel ( 0 ) ;
CORRADE_VERIFY ( false ) ;
}
# endif
texture . bind ( 15 ) ;
MAGNUM_VERIFY_NO_ERROR ( ) ;