unsigned levels = static_cast<const Texture2D *>(this)->levels;
if(!id)
- generate_id();
+ create();
GLenum gl_fmt = get_gl_pixelformat(storage_fmt);
if(ARB_texture_storage)
}
if(!texture.id)
- texture.generate_id();
+ texture.create();
unsigned w = image.get_width();
unsigned h = image.get_height();