From: Mikko Rasa Date: Sat, 30 Jan 2021 18:03:47 +0000 (+0200) Subject: Improve allocation handling in cube map textures X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=d6db27e633b1b8850fb093a8e5fad439ac3b0465;p=libs%2Fgl.git Improve allocation handling in cube map textures While there isn't enough bits to track all face allocations, tracking the base level per face is possible. This allows mipmap generation to work more sensibly. --- diff --git a/source/texturecube.cpp b/source/texturecube.cpp index 82447e65..14ddf43d 100644 --- a/source/texturecube.cpp +++ b/source/texturecube.cpp @@ -71,7 +71,7 @@ void TextureCube::allocate(unsigned level) throw invalid_operation("TextureCube::allocate"); if(level>=levels) throw invalid_argument("TextureCube::allocate"); - if(allocated&(1<