glTexImage2D(face, level, ifmt, s, s, 0, fmt, type, data);
// XXX Allocation should be tracked per-face, but we'll run out of bits
allocated |= 1<<level;
if(gen_mipmap && level==0)
{
glTexImage2D(face, level, ifmt, s, s, 0, fmt, type, data);
// XXX Allocation should be tracked per-face, but we'll run out of bits
allocated |= 1<<level;
if(gen_mipmap && level==0)
{