]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texturecube.cpp
Fix TextureCube mipmap level allocation tracking
[libs/gl.git] / 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
        {