]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix TextureCube mipmap level allocation tracking
authorMikko Rasa <tdb@tdb.fi>
Sun, 28 Mar 2021 12:30:00 +0000 (15:30 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 28 Mar 2021 12:30:00 +0000 (15:30 +0300)
source/core/texturecube.cpp

index d006e383cc998af09fa478b18bb8bc4ce047ecfc..3e0b9fc14d2b430cd16040f743294b0aae502419 100644 (file)
@@ -79,7 +79,7 @@ void TextureCube::allocate(unsigned level)
                BindRestore _bind(this);
                glTexStorage2D(target, levels, storage_fmt, size, size);
                apply_swizzle();
-               allocated |= (1<<levels)-1;
+               allocated |= (64<<levels)-1;
        }
        else
        {