From: Mikko Rasa Date: Mon, 13 Sep 2021 16:59:07 +0000 (+0300) Subject: Tweak some texture allocation checks X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=a0538cdd026622f7f0f3e2ac1f9c2bd54c4a6014;p=libs%2Fgl.git Tweak some texture allocation checks Sub_image calls allocate_ internally, so it should avoid doing unnecessary work. --- diff --git a/source/core/texture3d.cpp b/source/core/texture3d.cpp index 9db8b061..bdb87882 100644 --- a/source/core/texture3d.cpp +++ b/source/core/texture3d.cpp @@ -57,8 +57,6 @@ void Texture3D::allocate(unsigned level) throw invalid_operation("Texture3D::allocate"); if(level>=levels) throw invalid_argument("Texture3D::allocate"); - if(allocated&(1<=levels) throw invalid_argument("TextureCube::allocate"); - if(allocated&(64<