From c2974f5ced45cdef14cbd952cbc08c8d740e8c3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 12 Aug 2014 23:41:54 +0200 Subject: [PATCH] Removed dead code. As we now have separate class for Texture2D and RectangleTexture, this assertion is no longer needed (expecting the user to be sane). --- src/Magnum/AbstractTexture.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Magnum/AbstractTexture.cpp b/src/Magnum/AbstractTexture.cpp index d46860151..76b53eb78 100644 --- a/src/Magnum/AbstractTexture.cpp +++ b/src/Magnum/AbstractTexture.cpp @@ -1299,10 +1299,6 @@ void AbstractTexture::DataHelper<1>::setWrapping(AbstractTexture& texture, const #endif void AbstractTexture::DataHelper<2>::setWrapping(AbstractTexture& texture, const Array2D& wrapping) { - #ifndef MAGNUM_TARGET_GLES - CORRADE_ASSERT(texture._target != GL_TEXTURE_RECTANGLE || ((wrapping.x() == Sampler::Wrapping::ClampToEdge || wrapping.x() == Sampler::Wrapping::ClampToBorder) && (wrapping.y() == Sampler::Wrapping::ClampToEdge || wrapping.y() == Sampler::Wrapping::ClampToBorder)), "Texture2D::setWrapping(): rectangle texture must be clamped to border or to edge", ); - #endif - const Implementation::TextureState& state = *Context::current()->state().texture; (texture.*state.parameteriImplementation)(GL_TEXTURE_WRAP_S, GLint(wrapping.x()));