allocated |= 1<<level;
if(gen_mipmap && level==0)
{
+ auto_generate_mipmap();
for(; (w || h); w>>=1, h>>=1, ++level) ;
allocated |= (1<<level)-1;
}
pixel_buffer(PIXEL_UNPACK_BUFFER),
mapped_address(0),
phase(0)
-{
- if(!texture.id)
- glGenTextures(1, &texture.id);
-}
+{ }
bool Texture2D::AsyncLoader::needs_sync() const
{
return false;
}
+ if(!texture.id)
+ glGenTextures(1, &texture.id);
texture.image(image, false, true);
}